/* RESET & BASE STYLES */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
body {
  min-height: 100vh;
  color: #181818;
  background: #fff;
  font-family: 'Open Sans', Arial, 'Liberation Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s linear;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, 'Liberation Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #101010;
  line-height: 1.16;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.5rem; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1.125rem; margin-bottom: 10px; }
p, ul, ol {
  font-size: 1rem;
  color: #212121;
  margin-bottom: 16px;
}
strong { font-weight: bold; }

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* HEADER */
header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand-logo img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #181818;
  opacity: 0.88;
  transition: color 0.2s, opacity 0.2s;
  padding: 2px 8px;
  border-radius: 2px;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #101010;
  opacity: 1;
  background: #f3f3f3;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  font-size: 1.1rem;
  line-height: 1.2;
  min-width: 44px;
  min-height: 44px;
  box-shadow: 0 1px 8px 0 rgba(32,32,32,0.06);
  border: none;
}
.btn-primary {
  background: #101010;
  color: #fff;
  padding: 12px 28px;
  box-shadow: 0 2px 14px -2px rgba(32,32,32,0.10);
}
.btn-primary:hover, .btn-primary:focus {
  background: #2466A2;
  color: #fff;
  box-shadow: 0 4px 18px -2px rgba(36,102,162,0.13);
}
.btn-secondary {
  background: #fff;
  border: 1.5px solid #181818;
  color: #181818;
  padding: 10px 24px;
  margin-left: 8px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #181818;
  color: #fff;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  font-size: 2.1rem;
  color: #101010;
  border: none;
  cursor: pointer;
  z-index: 1101;
  padding: 2px 8px;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20,20,20,0.97);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.5,.1,.5,1.8);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  color: #fff;
  background: none;
  border: none;
  font-size: 2.3rem;
  padding: 24px 28px 8px 16px;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #bebebe;
}
.mobile-nav {
  width: 100%;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #2466A2;
  background: #fff;
}

@media (max-width: 991px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
}

/* --- STRUCTURE & LAYOUT PATTERNS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px -2px rgba(34,34,34,.08);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 260px;
  max-width: 340px;
}

.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 {
  background: #fbfbfb;
  border: 1.5px solid #e4e4e4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px 0 rgba(16,16,16,0.04);
  font-size: 1.05rem;
  color: #212121;
  position: relative;
}
.testimonial-card p {
  flex: 1 1 0;
  color: #111;
  margin-bottom: 10px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.13rem;
  text-shadow: 0 1px 3px #fff, 0 0 1px #efefef;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.96rem;
  color: #4B4B4B;
  font-style: italic;
  margin-left: 10px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HERO & SPECIAL SECTIONS --- */
.hero, .hero-products, .hero-services, .hero-realizzazioni, .hero-contact, .thank-you-message {
  background: #fff;
  padding: 60px 0 50px 0;
  margin-bottom: 46px;
  border-bottom: 1px solid #eaeaea;
}
.hero h1, .hero-products h1, .hero-services h1, .hero-realizzazioni h1, .hero-contact h1, .thank-you-message h1 {
  color: #101010;
  font-size: 2.7rem;
  margin-bottom: 18px;
  text-shadow: 0 1px #f4f4f4;
}
.hero p, .hero-products p, .hero-services p, .hero-realizzazioni p, .hero-contact p, .thank-you-message p {
  color: #212121;
  font-size: 1.19rem;
  margin-bottom: 18px;
  opacity: 0.96;
}

/* LISTS WITH ICONS */
.features ul, .brand-values ul, .product-categories ul, .product-benefits ul, .service-benefits ul, .realiz-benefits ul, .contact-info ul, .case-studies ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 10px;
}
.features ul li, .brand-values ul li, .product-categories ul li, .product-benefits ul li, .service-benefits ul li, .realiz-benefits ul li, .contact-info ul li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.07rem;
}
.features ul li img, .brand-values ul li img, .product-categories ul li img, .product-benefits ul li img, .service-benefits ul li img, .contact-info ul li img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-right: 5px;
  filter: grayscale(1) contrast(1.04);
  opacity: 0.8;
}
.price, .product-categories span, .service-benefits span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: bold;
  color: #2466A2;
  margin-left: 6px;
}

/* CONTACT INFO & MAP */
.contact-info ul {
  margin-bottom: 18px;
}
.contact-info ul li a {
  color: #2466A2;
  text-decoration: underline;
  transition: color 0.2s;
}
.contact-info ul li a:hover,
.contact-info ul li a:focus {
  color: #101010;
  text-decoration: none;
}
.map-location, .business-hours {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #444;
  font-size: 1rem;
  margin-bottom: 10px;
}
.map-location img, .business-hours img {
  width: 28px;
  height: 28px;
  filter: grayscale(1) opacity(0.65);
}

/* FOOTER */
footer {
  background: #101010;
  color: #ececec;
  padding: 40px 0 20px 0;
  border-top: 2px solid #232323;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #bdb5b5;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  opacity: 0.94;
  transition: color 0.13s, opacity 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F2F7FA;
  opacity: 1;
}
.social-links {
  display: flex;
  gap: 18px;
}
.social-links a img {
  width: 28px;
  height: 28px;
  filter: grayscale(1) brightness(0.96) contrast(1.1);
  transition: filter 0.17s;
}
.social-links a:hover img,
.social-links a:focus img {
  filter: grayscale(0) brightness(1.12) contrast(1.2);
}
footer .brand-logo img {
  width: 60px;
  margin: 0 auto;
  display: block;
}
.legal-links {
  color: #777;
  font-size: 0.97rem;
  margin-top: 6px;
}

/* LEGAL POLICY SECTIONS */
.legal-policy, .legal-gdpr, .legal-cookie-policy, .legal-terms {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 25px -6px rgba(30,30,30,.10);
  padding: 40px 22px;
  margin: 38px 0 44px 0;
  border-left: 4px solid #101010;
}
.legal-policy h1, .legal-gdpr h1, .legal-cookie-policy h1, .legal-terms h1 {
  color: #101010;
}
.legal-policy ul, .legal-gdpr ul, .legal-cookie-policy ul, .legal-terms ul {
  padding-left: 6px;
  gap: 14px;
}
.legal-policy ul li, .legal-gdpr ul li, .legal-cookie-policy ul li, .legal-terms ul li {
  color: #222;
  font-size: 1.05rem;
}

/* CTA Button Section */
.cta-get-in-touch, .cta-quote, .cta-free-quote, .cta-contact, .cta-transform {
  background: #f4f4f4;
  border-radius: 10px;
  box-shadow: 0 2px 21px -8px rgba(20,20,20,.12);
  padding: 40px 20px;
  margin-bottom: 54px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* FAQ */
.faq-section ul {
  gap: 18px;
}
.faq-section ul li {
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 1.07rem;
  color: #101010;
  margin-bottom: 6px;
  transition: box-shadow 0.15s;
}
.faq-section ul li:hover {
  box-shadow: 0 2px 16px -7px #cfcfcf;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 991px) {
  .container {
    max-width: 98vw;
    padding-left: 11px;
    padding-right: 11px;
  }
  .section, .cta-get-in-touch, .cta-quote, .cta-free-quote, .cta-contact, .cta-transform {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 768px) {
  header .container {
    height: 60px;
    padding-left: 10px;
    padding-right: 10px;
  }
  h1 { font-size: 2rem; margin-bottom: 14px; }
  h2 { font-size: 1.34rem; margin-bottom: 10px; }
  .hero, .hero-products, .hero-services, .hero-realizzazioni, .hero-contact, .thank-you-message {
    padding-top: 34px; padding-bottom: 22px;
    margin-bottom: 18px;
  }
  .footer-nav, .social-links {
    gap: 16px;
  }
  .footer-nav { flex-wrap: wrap; }
  .content-grid, .card-container, .features ul, .brand-values ul, .product-categories ul, .product-benefits ul, .service-benefits ul, .realiz-benefits ul {
    flex-direction: column;
    gap: 16px;
  }
  .testimonials .testimonial-card, .case-studies .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

/* --- Spacing and White Space --- */
main section, .section {
  margin-bottom: 60px;
  padding-top: 24px;
  padding-bottom: 24px;
}
@media (max-width: 600px) {
  .section, main section {
    margin-bottom: 34px;
    padding-left: 4px; padding-right: 4px;
  }
  .card, .testimonial-card, .legal-policy, .legal-gdpr, .legal-cookie-policy, .legal-terms {
    padding: 16px 8px;
  }
  .cta-get-in-touch, .cta-quote, .cta-free-quote, .cta-contact, .cta-transform {
    padding: 20px 5px;
    margin-bottom: 24px;
  }
}

/* --- MICRO-INTERACTIONS --- */
.card, .testimonial-card, .faq-section ul li {
  transition: box-shadow 0.18s, border-color 0.18s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 28px -7px #cfcfcf;
  border-color: #bcbcbc;
}

/* SUBTLE SHADOWS AND BORDERS */
.card, .testimonial-card, .faq-section ul li {
  border: 1px solid #e4e4e4;
  border-radius: 9px;
  background: #fff;
}

/* SELECTION & FOCUS STATES */
:focus {
  outline: 2px solid #2466A2;
  outline-offset: 2px;
}
.btn-primary:focus, .btn-secondary:focus {
  box-shadow: 0 0 0 2px #2466A2;
  outline: none;
}

/* Scrollbar for modern browsers */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-thumb { background: #bbb; border-radius: 8px; }
::-webkit-scrollbar-track { background: #f0f0f0; }

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #101010;
  color: #fff;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 34px 22px 18px;
  box-shadow: 0 -2px 18px -6px rgba(20,20,20,.14);
  font-size: 1rem;
  opacity: 1;
  transition: transform 0.34s;
  gap: 22px;
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner .cookie-banner-text {
  flex: 1 1 0;
  color: #fff;
  font-size: 1.08rem;
  margin-right: 18px;
}
.cookie-banner .cookie-action-group {
  display: flex;
  gap: 12px;
}
.cookie-btn-primary, .cookie-btn-secondary, .cookie-btn-settings {
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  margin-left: 0;
  margin-right: 0;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
}
.cookie-btn-primary {
  background: #fff;
  color: #101010;
}
.cookie-btn-primary:hover, .cookie-btn-primary:focus {
  background: #2466A2;
  color: #fff;
}
.cookie-btn-secondary {
  background: #181818;
  color: #fff;
  border: 1px solid #fff;
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: #fff;
  color: #101010;
}
.cookie-btn-settings {
  background: transparent;
  color: #fff;
  border: 1.5px solid #bebebe;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #fff;
  color: #2466A2;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 8px;
    gap: 15px;
  }
  .cookie-banner .cookie-action-group {
    gap: 8px;
  }
}

/* --- COOKIE CONSENT MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  width:100vw; height:100vh;
  background: rgba(30,30,30,0.83);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #181818;
  border-radius: 14px;
  padding: 40px 38px;
  min-width: 300px;
  max-width: 98vw;
  box-shadow: 0 6px 36px -8px #222A45;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: 'Open Sans', sans-serif;
}
.cookie-modal h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.34rem;
  color: #101010;
  margin-bottom: 4px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 7px;
  padding: 10px 10px 10px 0;
  font-size: 1rem;
}
.cookie-category .cookie-toggle {
  margin-right: 3px;
}
.cookie-toggle {
  width: 36px;
  height: 18px;
  background: #e4e4e4;
  border-radius: 9px;
  position: relative;
  cursor: pointer;
  display: inline-block;
  transition: background 0.18s;
}
.cookie-toggle.checked {
  background: #2466A2;
}
.cookie-toggle .knob {
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 0; left: 0;
  box-shadow: 0 2px 7px -2px #acacac;
  transition: left 0.23s;
}
.cookie-toggle.checked .knob {
  left: 18px;
}
.cookie-category.essential {
  opacity: 0.5;
}
.cookie-category.essential .cookie-toggle {
  pointer-events: none;
}
.cookie-modal .modal-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}
.cookie-modal .modal-close {
  background: transparent;
  border: none;
  font-size: 1.55rem;
  color: #222;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: -30px;
  position: relative;
  top: -12px;
}
@media (max-width: 480px) {
  .cookie-modal { padding: 19px 5px; }
  .cookie-category { font-size: 0.97rem; gap: 10px; }
}

/* --- MONOCHROME _SOPHISTICATED STYLES --- */
/* Use only black, white, gray, subtle blue accent on buttons/links */
body {
  background: #fff;
  color: #181818;
}
.section, .card, .content-wrapper, .card-container, .testimonial-card {
  background: #fff;
}
a, .main-nav a, .footer-nav a {
  color: #bdb5b5;
}
a.btn-primary, .btn-primary {
  background: #101010;
  color: #fff;
}
a.btn-primary:hover, .btn-primary:hover {
  background: #2466A2;
  color: #fff;
}
.btn-secondary, a.btn-secondary {
  background: #fff;
  color: #181818;
  border: 1.5px solid #181818;
}
.btn-secondary:hover, a.btn-secondary:hover {
  background: #181818;
  color: #fff;
}
h1, h2, h3, h4 {
  color: #101010;
}

/* Visual Hierarchy */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
}
h3 {
  font-size: 1.5rem;
}

/* Responsive Card Columns via Flex Only */
@media (min-width: 768px) {
  .card-container {
    flex-direction: row;
    justify-content: flex-start;
    gap: 36px;
  }
  .content-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: flex-start;
  }
  .text-image-section {
    flex-direction: row;
    align-items: center;
    gap: 30px;
  }
  .testimonial-card {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    min-width: 340px;
  }
}
@media (max-width: 767px) {
  .card-container, .content-grid { flex-direction: column; }
}

/* Prevent Overlapping */
.card, .testimonial-card, .section, .content-wrapper, .faq-section ul li {
  box-sizing: border-box;
  margin-bottom: 20px;
}

/* Ensure proper z-index for banners and menus */
.mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay {
  z-index: 2000;
}

/* Hide visually (for accessibility, e.g. closed states) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* Misc Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: #767676 !important; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.pt-2 { padding-top: 16px; }
.pb-2 { padding-bottom: 16px; }

/* --- END CSS --- */
