/* style.css – Raccogesti Transport – Monochrome Sophisticated Theme */
/* CSS 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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  background: #fff;
  color: #111;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  /* Remove blue highlight on tap */
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #111;
  text-decoration: none;
  transition: color .2s;
}
a:focus, a:hover {
  color: #203A87;
  outline: none;
}
ul, ol { margin-left: 24px; }

/* Typography */
h1, h2, h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.1;
}
h2 {
  font-size: 1.65rem;
  line-height: 1.2;
  margin-top: 8px;
}
h3 {
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 12px;
}
.subheadline {
  font-size: 1.12rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #444;
  margin-bottom: 24px;
  font-weight: 400;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #222;
}
strong, b {
  font-weight: 600;
  color: #111;
}
li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #262626;
}

/* Layout Containers & Spacing */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.flex, .flex-between {
  display: flex;
  flex-wrap: wrap;
}
.flex-between {
  justify-content: space-between;
  align-items: center;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(40,48,64,0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Hero Section */
.hero {
  padding: 0;
  background: #f8f9fa;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
  padding: 52px 0 42px 0;
}
.hero h1 {
  color: #111;
  font-size: 2.6rem;
  margin-bottom: 16px;
  line-height: 1.08;
}
.hero p.subheadline {
  max-width: 600px;
  color: #222;
}

/* CTA Section */
.cta {
  background: #111;
  border-radius: 20px;
  color: #fff;
  margin-bottom: 60px;
  box-shadow: 0 12px 24px rgba(20,20,20,0.08);
}
.cta .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 14px;
}
.cta h2, .cta p {
  color: #fff;
}

/* Card & Grid Patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(40,48,64,0.07);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(32,58,135,0.14);
  transform: translateY(-2px) scale(1.02);
}

.content-grid, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid {
  margin-top: 10px;
  gap: 24px;
}
.feature {
  background: #fafbfc;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(40,40,40,0.06);
  padding: 28px 22px 22px 22px;
  flex: 1 1 260px;
  min-width: 230px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow .22s, background .25s;
}
.feature img {
  width: 38px;
  height: 38px;
  filter: grayscale(0.7) contrast(1.15);
  opacity: 0.92;
}
.feature h3 {
  margin-bottom: 6px;
  font-size: 1.14rem;
  color: #203A87;
}
.feature p {
  color: #313131;
}

@media (max-width: 1000px) {
  .container {
    max-width: 96vw;
    padding: 0 12px;
  }
  .feature-grid, .content-grid { gap: 16px; }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 6px;
  }
  .hero .content-wrapper {
    padding: 32px 0 22px 0;
  }
  .feature-grid, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card-container, .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
}

/* Flex Patterns for Sections */
.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-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #f6f6f6;
  color: #222;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(40,48,64,0.06);
  padding: 22px 20px;
  max-width: 380px;
  min-width: 220px;
  margin-bottom: 20px;
  position: relative;
  gap: 20px;
  transition: box-shadow .2s, transform .2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(32,58,135,0.11);
  transform: translateY(-2px) scale(1.015);
}
.testimonial-author {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.96rem;
  font-style: italic;
  color: #203A87;
  margin-top: 2px;
}

.client-logos {
  display: flex;
  gap: 36px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 18px;
  flex-wrap: wrap;
}
.client-logos img {
  filter: grayscale(1) opacity(.6);
  height: 40px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.job-listings {
  margin-left: 0;
  list-style: square inside;
  margin-bottom: 18px;
}

.vehicle-specifications {
  margin-left: 0;
  list-style: disc inside;
  margin-top: 14px;
  margin-bottom: 22px;
  color: #4e4e4e;
  font-size: 1rem;
}

/* Notice and Special Blocks */
.notice {
  background: #3a3a3a;
  color: #fff;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 1.02rem;
  box-shadow: 0 2px 8px rgba(20,20,20,0.09);
  margin-top: 8px;
}

/* Footer */
footer {
  background: #17191B;
  color: #E3E4EA;
  padding-top: 38px;
  padding-bottom: 20px;
  margin-top: 80px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 26px;
}
.footer-brand img {
  height: 32px;
  margin-bottom: 12px;
  filter: grayscale(1) opacity(.83);
}
.footer-brand p {
  color: #ccc;
  font-size: 0.98rem;
  margin-bottom: 0;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #ddd;
  font-size: 1rem;
  transition: color .18s;
}
.footer-nav a:hover {
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bbb;
  font-size: 1rem;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  filter: grayscale(1) contrast(1.1);
}
.copyright {
  font-size: 0.925rem;
  color: #c5c7d2;
  margin: 20px 0 0 0;
  text-align: center;
  letter-spacing: 0.02em;
}
@media (max-width: 900px) {
  footer .container { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Navigation (Desktop & Mobile) */
header {
  background: #fff;
  box-shadow: 0 4px 20px rgba(44,48,68,0.06);
  padding-top: 12px;
  padding-bottom: 12px;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 101;
}
.main-nav {
  display: flex;
  gap: 28px;
  margin-left: 8px;
}
.main-nav a {
  color: #232323;
  font-size: 1.04rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 9px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .18s, color .18s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #203A87;
  border-bottom: 2px solid #203A87;
}
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #111;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 11px 32px;
  border-radius: 32px;
  border: none;
  outline: none;
  box-shadow: 0 2px 12px rgba(44,44,44,0.08);
  cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .17s;
  margin-left: 24px;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: #203A87;
  color: #fff;
  box-shadow: 0 6px 20px rgba(32,58,135,0.10);
  transform: translateY(-1.5px) scale(1.01);
}

/* Mobile Navigation Styles */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #203A87;
  margin-left: 18px;
  cursor: pointer;
  border-radius: 7px;
  transition: background .18s, color .18s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #f7f8fa;
  color: #111;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  background: #1a1d22;
  z-index: 99999;
  transform: translateX(100%);
  transition: transform .37s cubic-bezier(0.84,0.01,0.18,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.1rem;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  margin: 26px 26px 14px 0;
  padding: 2px 5px;
  border-radius: 8px;
  z-index: 1001;
  transition: background .17s;
}
.mobile-menu-close:hover {
  background: #282828;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 28px 0 0 32px;
}
.mobile-nav a {
  color: #f8f9fb;
  font-size: 1.23rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 550;
  padding: 13px 0;
  border-bottom: 1px solid #323848;
  width: fit-content;
  transition: color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #aebff2;
}
@media (max-width: 1028px) {
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
    margin-top: 0; /* reset */
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1029px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #2b2b2e;
  color: #fff;
  z-index: 100010;
  box-shadow: 0 -4px 28px rgba(22,26,32,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 17px 14px;
  gap: 26px;
  animation: banner-slide-up .32s cubic-bezier(.51,.03,.44,1.04);
  font-size: 1.02rem;
}
@keyframes banner-slide-up {
  from { transform: translateY(120px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-message {
  flex: 1 1 380px;
  max-width: 600px;
}
.cookie-banner-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.cookie-btn {
  border-radius: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 26px;
  border: none;
  margin: 0;
  outline: none;
  cursor: pointer;
  transition: background .15s, color .15s, transform .08s;
}
.cookie-btn.accept {
  background: #203A87;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #172157;
}
.cookie-btn.reject {
  background: #f8f8f8;
  color: #203A87;
  border: 1px solid #111;
}
.cookie-btn.reject:hover {
  background: #ccc;
}
.cookie-btn.settings {
  background: #fff;
  color: #111;
  border: 1px solid #bbb;
}
.cookie-btn.settings:hover {
  background: #f2f6fa;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 12px;
  }
  .cookie-banner-actions {
    gap: 10px;
  }
}

/* Cookie Modal Styles */
.cookie-modal-backdrop {
  position: fixed;
  left:0;right:0;top:0;bottom:0;
  z-index: 100100;
  background: rgba(40,44,56,0.63);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-bg-fade .28s cubic-bezier(.44,.04,.39,.97);
}
@keyframes modal-bg-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #222;
  box-shadow: 0 12px 40px rgba(20,26,36,0.13);
  border-radius: 16px;
  max-width: 420px;
  width: 94vw;
  padding: 38px 28px 26px 28px;
  position: relative;
  animation: modal-pop-in .37s cubic-bezier(.69,0,.19,1.24);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes modal-pop-in {
  from { transform: scale(.92) translateY(60px); opacity:0; }
  to { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.cookie-modal-category label {
  font-size: 1rem;
}
.cookie-modal-switch {
  margin-right: 2px;
}
.cookie-modal-actions {
  margin-top: 18px;
  display: flex;
  gap: 14px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  font-size: 1.4rem;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  transition: color .17s;
  padding: 0 2px;
}
.cookie-modal-close:hover { color: #203A87; }

/* Toggle Switch for Cookie Settings */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 21px;
  vertical-align: middle;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right:0; bottom:0;
  background: #e3e3e3;
  border-radius: 18px;
  transition: background 0.17s;
}
.toggle-switch input:checked + .toggle-slider {
  background: #203A87;
}
.toggle-slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2.4px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.17s;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(17px);
}

/* Misc & Utility */
.text-section {
  margin: 8px 0 16px 0;
}
.text-section ul {
  margin-top: 6px;
  color: #3b3b3b;
}
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #f5f6fa;
  border-radius: 9px;
  padding: 13px 18px;
  color: #171c22;
  font-size: 0.98rem;
  min-width: 210px;
  box-shadow: 0 1.5px 7px rgba(32,42,58,0.045);
}
.contact-card img {
  width: 22px;
  height: 22px;
  filter: grayscale(1) opacity(0.77);
}
.map-location {
  margin-top: 10px;
  background: #eceef1;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: .97rem;
  color: #222;
}

/* Override selection for visual polish */
::selection {
  background: #203A87;
  color: #fff;
}

/* Responsive scale for headers/text */
@media (max-width: 460px) {
  h1 { font-size: 1.32rem; }
  h2 { font-size: 1.05rem; }
  .hero h1 { font-size: 1.45rem; }
}

/* Remove outline on mouse (but not keyboard) */
:focus:not(:focus-visible) { outline: none; }

/* Hide scrollbars for modal/mobile nav on mobile */
.mobile-menu,
.cookie-modal-backdrop { scrollbar-width: thin; }


/* END OF STYLE.CSS – RACCOGESTI TRANSPORT */
