/* ========================================================
   LUXURY PREMIUM CSS for Mercurio Motori
   Brand: Modern, premium, gold accents, sophisticated
   Fonts: Montserrat (display), Roboto (body)
   Colors: #1B2936 (primary), #F2B705 (gold), #F5F7FA (accent), #fff, #191919
   Flexbox-only layouts. Responsive, mobile-first.
   ======================================================== */

/* --- CSS RESET & NORMALIZE --- */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
html, body { margin: 0; padding: 0; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, blockquote, pre, figure, figcaption, hr { margin: 0; padding: 0; font-weight: normal; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; outline: none; }
:focus { outline: 2px solid #F2B705; outline-offset: 2px; }

/* --- BRAND FONT LOADING (fallback local if not used by html) --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap');

html, body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px; /* base */
  background: #F5F7FA;
  color: #1B2936;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1B2936;
  margin-bottom: 16px;
}
h1 { font-size: 2.6rem; font-weight: 700; letter-spacing: -1px; }
h2 { font-size: 2rem; font-weight: 600; letter-spacing: -0.5px; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4, h5, h6 { font-size: 1.1rem; font-weight: 500; }

p, li, a {
  font-size: 1rem;
  color: #222;
  line-height: 1.65;
  letter-spacing: 0;
}
a { transition: color .2s; }
a:hover, a:focus { color: #F2B705; }

strong, b { font-weight: 600; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* -------- HEADER --------- */
header {
  background: #fff;
  border-bottom: 1.5px solid #ececec;
  box-shadow: 0 2px 8px rgba(27,41,54,0.03);
  z-index: 20;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
header nav {
  display: flex;
  gap: 28px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #1B2936;
  opacity: 0.86;
  transition: color 0.18s, opacity 0.18s;
  position: relative;
  font-size: 1.08rem;
}
header nav a:hover, header nav a:focus {
  color: #F2B705;
  opacity: 1;
}

header .btn-primary {
  margin-left: 32px;
}

/* --- Mobile Burger Button --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #F2B705;
  padding: 6px 10px;
  border-radius: 7px;
  margin-left: 24px;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: rgba(242,183,5,0.10);
}

/* ------ MOBILE MENU ------ */
.mobile-menu {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: #1B2936;
  color: #fff;
  z-index: 1110;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.36s cubic-bezier(.77,0,.18,1), opacity 0.22s;
  display: flex;
  flex-direction: column;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 24px 0 0;
  font-size: 2.2rem;
  color: #F2B705;
  background: none;
  border: none;
  transition: color .2s;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fde8b2;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 44px 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color .18s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F2B705;
}

/* --- HERO SECTION --- */
.hero {
  padding: 70px 0 70px 0;
  background: #1B2936;
  color: #fff;
  box-shadow: 0 4px 32px 0 rgba(27,41,54,0.13);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero h1 {
  color: #F2B705;
  font-size: 2.6rem;
  margin-bottom: 18px;
  text-shadow: 0 1px 4px rgba(27,41,54,0.11);
}
.hero p {
  color: #fff;
  font-size: 1.12rem;
  margin-bottom: 34px;
  opacity: 0.93;
}
.hero .btn-primary {
  margin-top: 10px;
}

/* --- BUTTONS --- */
.btn-primary,
.btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border-radius: 30px;
  padding: 12px 34px;
  font-size: 1.08rem;
  border: none;
  transition: background .19s, color .19s, box-shadow .18s;
  box-shadow: 0 2px 10px 0 rgba(27,41,54,0.03);
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: #F2B705;
  color: #1B2936;
  border: 1.5px solid #F2B705;
  box-shadow: 0 2px 10px 0 rgba(242,183,5,0.07);
}
.btn-primary:hover, .btn-primary:focus {
  background: #1B2936;
  color: #F2B705;
  border-color: #F2B705;
  box-shadow: 0 2px 10px 0 rgba(242,183,5,0.18);
}
.btn-secondary {
  background: transparent;
  color: #1B2936;
  border: 1.5px solid #F2B705;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #F2B705;
  color: #1B2936;
}

/* --- FLEX SPACING & CONTAINER STYLES --- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; border-radius: 18px; background: #fff; box-shadow: 0 4px 20px rgba(27,41,54,0.06); padding: 28px 24px; }
.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; align-items: center; gap: 20px; padding: 20px; margin-bottom: 20px; background: #fff; border-radius: 16px; box-shadow: 0 2px 18px 0 rgba(27,41,54,.07); border: 1.5px solid #f0f0f0; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --------- FEATURES AND GRIDS --------- */
.feature-grid, .offer-list, .product-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div, .offer-list > div, .product-categories ul li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2.5px 10px 0 rgba(27,41,54,.08);
  padding: 24px 18px;
  flex: 1 1 230px;
  min-width: 220px;
  border: 1px solid #EFEAF3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  transition: box-shadow .16s;
}
.feature-grid > div:hover,
.offer-list > div:hover,
.product-categories ul li:hover {
  box-shadow: 0 10px 32px 0 rgba(27,41,54,.16);
  border-color: #F2B705;
}
.feature-grid img, .product-categories img {
  width: 38px; height: 38px;
  margin-bottom: 10px;
}

.trust-icons {
  display: flex; flex-direction: row; gap: 34px; margin-top: 12px; }
.trust-icons img {
  width: 36px; height: 36px;
}
.brand-logos {
  display: flex; align-items: center; gap: 26px; margin: 16px 0; }
.brand-logos span {
  background: #fff;
  border-radius: 32px; box-shadow: 0 1px 5px 0 rgba(27,41,54,0.07); padding: 10px 18px;
}
.brand-logos img { width: 48px; height: 48px; }
.certifications {
  display: flex; gap: 16px; margin: 16px 0 12px 0;
}
.certifications img { width: 38px; height: 38px; }

.discount-badge {
  display: inline-block;
  background: #F2B705;
  color: #1B2936;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border-radius: 14px;
  padding: 5px 16px;
  font-size: 1.1rem;
  margin: 6px 0 0 0;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px 0 rgba(242,183,5,.09);
}
.offer-terms {
  color: #7D898E;
  font-size: .96rem;
  margin-top: 7px;
  opacity: .77;
}

/* -------- CTA Section -------- */
.cta {
  background: #1B2936;
  color: #fff;
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 6px 32px 0 rgba(27,41,54,0.08);
}
.cta h2 { color: #F2B705; }
.cta .btn-primary {
  background: #F2B705;
  color: #1B2936;
  border: 1.5px solid #F2B705;
}
.cta .btn-primary:hover {
  background: #fff;
  color: #F2B705;
}

/* --------- TESTIMONIALS -------- */
.testimonial-card {
  background: #fff;
  color: #1B2936;
  border-left: 5px solid #F2B705;
  box-shadow: 0 6px 28px 0 rgba(27,41,54,0.07);
  margin-bottom: 24px;
  transition: box-shadow .16s, border-color .18s;
}
.testimonial-card blockquote {
  font-size: 1.16rem;
  font-style: italic;
  color: #222;
  margin-bottom: 10px;
  line-height: 1.4;
  opacity: 1;
}
.testimonial-card p {
  font-size: .99rem;
  color: #483f1e;
  margin: 0;
}

div.faq-accordion > h2 {
  font-size: 1.32rem;
  margin-top: 22px;
  color: #F2B705;
}
div.faq-accordion > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(27,41,54,0.06);
  padding: 14px 24px 18px 22px;
  margin-bottom: 18px;
}
div.faq-accordion h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 9px;
  color: #1B2936;
}
div.faq-accordion p {
  margin-bottom: 0;
}

/* -------- TABLES, FORMS, LISTS -------- */
table { border-collapse: collapse; width: 100%; font-size: 1rem; margin-bottom: 24px; }
thead th { font-family: 'Montserrat',sans-serif; letter-spacing: 0.03em; background: #fffbe4; color: #1B2936; font-weight: 600; }
td, th { padding: 14px 10px; border-bottom: 1px solid #ececec; }
form input, form select, form textarea {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  background: #fff;
  border-radius: 13px;
  border: 1.5px solid #dbdbdb;
  padding: 11px 16px;
  margin-bottom: 16px;
  color: #1B2936;
  box-shadow: 0 2px 8px rgba(27,41,54,0.04);
  width: 100%;
  transition: border .18s;
}
form input:focus, form select:focus, form textarea:focus {
  border-color: #F2B705;
}

ul, ol {
  padding-left: 18px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 8px;
}
ul li span { color: #7D898E; font-size: .97rem; margin-left:6px; }


/* --- FOOTER --- */
footer {
  background: #1B2936;
  color: #fff;
  border-top: 1.5px solid #efecec;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 38px;
  justify-content: space-between;
  padding: 36px 20px 28px 20px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
footer nav a {
  color: #fde8b2;
  font-family: 'Montserrat',sans-serif;
  font-size: 1.01rem;
  opacity: .87;
  letter-spacing: .01em;
  transition: color .18s, opacity .15s;
}
footer nav a:hover {
  color: #F2B705;
  opacity: 1;
}
.contact-info {
  display: flex; flex-direction: column; gap: 9px; font-size: .99rem;
}
.contact-info p {
  margin-bottom: 0.5em;
  color: #ececec;
}
footer img[alt="Mercurio Motori"],
footer img[alt="Mercurio Motori Logo"],
footer img[alt="Mercurio Motori Mark"] {
  width: 56px; height: auto;
  margin-bottom: 11px;
}

/* --- CONTENT PAGES (Text heavy) ---*/
.text-section {
  background: #fff;
  border-radius: 17px;
  padding: 32px 22px;
  box-shadow: 0 2px 18px 0 rgba(27,41,54,0.07);
  margin-bottom: 26px;
}
.text-section h2, .text-section h3 {
  color: #1B2936;
}
.text-section ul, .text-section ol {
  margin-bottom: 12px;
}

.confirmation {
  background: #fff;
  border-radius: 16px;
  text-align: center;
  padding: 36px 22px;
  box-shadow: 0 2px 18px 0 rgba(27,41,54,0.08);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1B2936;
  color: #fff;
  z-index: 1200;
  padding: 22px 16px 18px 16px;
  box-shadow: 0 -2px 24px 0 rgba(27,41,54,0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: 1rem;
  transition: transform .36s, opacity .25s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cookie-banner-btns {
  display: flex;
  gap: 14px;
  margin-top: 7px;
}
.cookie-banner .cookie-btn {
  border-radius: 24px;
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  padding: 8px 22px;
  background: #F2B705;
  border: 1.5px solid #F2B705;
  color: #1B2936;
  font-size: 1rem;
  margin-right: 2px;
  margin-bottom: 3px;
  box-shadow: 0 1px 7px 0 rgba(242,183,5,.08);
  transition: background .19s, color .16s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #fff;
  color: #F2B705;
}
.cookie-banner .cookie-btn.secondary {
  background: transparent;
  border: 1.5px solid #F2B705;
  color: #F2B705;
}
.cookie-banner .cookie-btn.secondary:hover {
  background: #F2B705;
  color: #1B2936;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  z-index: 1230;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(27,41,54,0.51);
  display: flex;
  align-items: center; /* vertical center */
  justify-content: center; /* horizontal center */
  transition: opacity .25s;
}
.cookie-modal.hide {
  opacity: 0; pointer-events: none;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 17px;
  padding: 34px 26px 18px 26px;
  min-width: 320px;
  max-width: 92vw;
  box-shadow: 0 8px 32px rgba(27,41,54,0.15);
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: fadeInUp .45s cubic-bezier(.77,0,.18,1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
.cookie-modal-dialog h2 {
  color: #1B2936;
  font-size: 1.28rem;
  margin-bottom: 10px;
}
.cookie-settings-group {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category label {
  font-size: 1.01rem;
  color: #1B2936;
  font-family: 'Montserrat',sans-serif;
}
.cookie-category input[type="checkbox"] {
  accent-color: #F2B705;
  width: 1.18em;
  height: 1.18em;
}
.cookie-category .category-desc { color: #7D898E; font-size: .92rem; margin-left: 4px; }
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 7px;
}
.cookie-modal-close {
  position: absolute;
  right: 18px; top: 11px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #F2B705;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: #1B2936; }


/* --- MISC UTILITY SPACING CLASSES ---  */
.pt-0   { padding-top: 0 !important; }
.pb-0   { padding-bottom: 0 !important; }
.mt-0   { margin-top: 0 !important; }
.mb-0   { margin-bottom: 0 !important; }
.mt-24  { margin-top: 24px !important; }
.mb-24  { margin-bottom: 24px !important; }
.gap-8  { gap: 8px !important; }
.gap-20 { gap: 20px !important; }


/* --- MEDIA QUERIES (RESPONSIVE) --- */
@media (max-width: 1100px) {
  .container { max-width: 940px; }
  .footer .container { flex-direction: column; gap: 26px; }
}
@media (max-width: 900px) {
  .container { max-width: 100%; }
  .feature-grid > div, .offer-list > div { min-width: 190px; }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .hero { padding: 43px 0 44px 0; }
  .section { padding: 28px 6px; }
  .card, .feature-grid > div, .offer-list > div {
    padding: 16px 10px;
  }
  .brand-logos, .content-grid, .feature-grid, .offer-list { gap: 12px; }
  .trust-icons { gap: 20px; }
  .content-wrapper { gap: 18px; }
  .text-section { padding: 18px 7px; }
  .cta { border-radius: 11px; }
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer .container { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 600px) {
  h1 { font-size: 2.02rem; }
  h2 { font-size: 1.36rem; }
  .hero h1 { font-size: 1.62rem; }
  .btn-primary, .btn-secondary { font-size: .97rem; padding: 10px 22px; }
  .testimonial-card { padding: 13px 7px; }
  .footer .container { padding: 18px 8px 14px 8px; }
}
@media (max-width: 530px){
  .container { padding-left: 5px; padding-right: 5px; }
  .cookie-modal-dialog { padding: 17px 6px 10px 6px; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: stretch; gap: 18px; }
  .content-grid { flex-direction: column; gap: 12px; }
}

/* --- Responsive: burger menu only mobile --- */
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}


/* ---- MICRO-INTERACTIONS: HOVER & TRANSITIONS --- */
.card, .feature-grid > div, .offer-list > div, .product-categories ul li, .testimonial-card {
  transition: box-shadow .18s, border-color .13s;
}
.card:hover, .feature-grid > div:hover, .offer-list > div:hover, .product-categories ul li:hover, .testimonial-card:hover {
  box-shadow: 0 7px 34px 0 rgba(242,183,5,.13);
  border-color: #F2B705;
}

.btn-primary, .btn-secondary, .cookie-btn {
  transition: background .2s, color .2s, border-color .16s, box-shadow .18s;
}

nav a, .mobile-nav a {
  transition: color 0.18s, opacity 0.18s;
}

/* ---- MISC DECORATIVE GOLD ACCENTS ---- */
h1, h2, h3 {
  position: relative;
}
h1::after, h2::after, h3::after {
  content: '';
  display: block;
  width: 38px;
  height: 3px;
  background: #F2B705;
  border-radius: 2px;
  margin-top: 7px;
}
h1::after { width: 48px; }

/* ---- Z-INDEX LAYERING ---- */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 1000; }

/* ---- PREVENT CONTENT OVERLAP ---- */
.card, .feature-grid > div, .offer-list > div, .testimonial-card, .section, .content-wrapper {
  margin-bottom: 20px;
}
.section:last-child, .card:last-child, .feature-grid > div:last-child, .testimonial-card:last-child {
  margin-bottom: 0;
}

/* ---- HIDING NON-STRUCTURAL DECORATIVE ELEMENTS ON SMALL DEVICES ---- */
@media (max-width: 570px) {
  .brand-logos span { padding: 6px 8px; }
  .brand-logos img, .certifications img, .trust-icons img { width:28px; height:28px; }
}

/* ---- Map Embed in Contacts (as background card) ---- */
.map-embed {
  background: #ececec;
  border-radius: 12px;
  min-height: 120px;
  margin: 15px 0;
  box-shadow: 0 1.5px 10px 0 rgba(27,41,54,0.03);
}

/* ---- Miscellaneous (for accessibility and contrast) ---- */
blockquote { color: #191919; }
::selection { background: #F2B705; color: #191919; }

/* END OF FILE - Only Flexbox Layouts Used, No CSS Grid OR Columns */
