/* ----------------- CSS RESET & NORMALIZATION ----------------- */
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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F5F4F0;
  color: #253340;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}
a {
  color: #DFB264;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #ffbd2a;
  outline: none;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  margin: 0;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}

/* ----------------- FONT FACE & TYPOGRAPHY ----------------- */
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:700,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4 {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.12;
}
h1 {
  font-size: 2.5rem;
  color: #253340;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  color: #191f29;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.4rem;
  color: #253340;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
  color: #253340;
  margin-bottom: 8px;
}
p, ul li, ol li, dl, dd, dt {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #253340;
  margin-bottom: 12px;
  line-height: 1.7;
}
strong {
  font-weight: 700;
  color: #DFB264;
}

/* --- Responsive Type Scale --- */
@media (min-width: 480px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.1rem; }
}
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.3rem; }
}

/* ----------------- LAYOUT CONTAINERS ----------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 8px 32px 0 rgba(37,51,64,0.09);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 4px 18px 0 rgba(223,178,100,0.11), 0 1.5px 6px 0 rgba(37,51,64,0.05);
  transition: transform 0.18s cubic-bezier(0.65,0.05,0.36,1), box-shadow 0.18s;
}
.card:hover, .card:focus-within {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 8px 28px 0 rgba(223,178,100,0.19), 0 1.5px 8px 0 rgba(37,51,64,0.08);
}

.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;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #f6faee;
  border-left: 5px solid #DFB264;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1.5px 8px 0 rgba(37,51,64,0.06);
  transition: box-shadow 0.18s;
}
.testimonial-card p {
  color: #1a232d;
  font-size: 1.09rem;
  margin-bottom: 7px;
}
.testimonial-card div {
  font-size: 1rem;
  color: #253340;
}
.testimonial-card strong {
  color: #253340;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 18px 0 rgba(223,178,100,0.12);
}

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

/* ----------------- SITE HEADER & NAVIGATION ----------------- */
header {
  background: #fff;
  border-bottom: 3px solid #DFB264;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1.5px 8px 0 rgba(37,51,64,0.08);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 62px;
  padding: 0 18px;
}
header img {
  height: 44px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #253340;
  padding: 8px 0;
  border-bottom: 2.5px solid transparent;
  transition: border-color 0.18s, color 0.18s;
  font-size: 1rem;
}
.main-nav a:hover, .main-nav a:focus {
  color: #DFB264;
  border-bottom: 2.5px solid #DFB264;
}

/* --- Call to Action Button --- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  padding: 11px 30px;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.19s;
  box-shadow: 0 4px 18px 0 rgba(223,178,100,0.08);
}
.cta.primary {
  background: #DFB264;
  color: #253340;
  border: 2px solid #DFB264;
}
.cta.secondary {
  background: #fff;
  color: #DFB264;
  border: 2px solid #DFB264;
}
.cta.primary:hover, .cta.primary:focus {
  background: #ffd871;
  color: #191f29;
  box-shadow: 0 4px 24px 0 rgba(223,178,100,0.19);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #DFB264;
  color: #253340;
}

/* --- Burger Mobile Menu Button --- */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #DFB264;
  background: transparent;
  border: none;
  padding: 5px 14px;
  margin-left: 16px;
  border-radius: 8px;
  transition: background 0.17s;
  z-index: 52;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F5F4F0;
  color: #ffbd2a;
}

@media (min-width: 1025px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* --- Hide Desktop Navigation on Mobile --- */
@media (max-width: 1024px) {
  .main-nav, .cta.primary {
    display: none !important;
  }
}

/* ----------------- MOBILE MENU ----------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #253340ee;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.86,0,.07,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.3rem;
  margin: 32px 26px 16px 0;
  color: #fff;
  background: transparent;
  border: none;
  align-self: flex-end;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 9px;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFD871;
  color: #DFB264;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-end;
  padding: 0 26px;
  margin-top: 32px;
}
.mobile-nav a {
  color: #fff;
  font-weight: 600;
  font-size: 1.37rem;
  padding: 9px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.16s, border-color 0.16s, background 0.15s;
  width: 100%;
  text-align: right;
  border-radius: 8px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #ffd871;
  background: #253340;
  border-bottom: 2px solid #DFB264;
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ----------------- FOOTER ----------------- */
footer {
  background: #253340;
  color: #fff;
  padding: 48px 0 24px 0;
}
footer .container {
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.main-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 18px;
}
.main-footer-nav a {
  color: #DFB264;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.16s;
}
.main-footer-nav a:hover, .main-footer-nav a:focus {
  color: #FFD871;
}
.contact-summary {
  font-size: 1rem;
  color: #eee;
}
.contact-summary a {
  color: #FFD871;
  text-decoration: underline;
}
.social-links {
  display: flex;
  gap: 16px;
  padding: 8px 0 14px 0;
}
.social-links a {
  background: #fff;
  padding: 7px 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1.5px 7px 0 rgba(223,178,100,0.09);
  transition: background 0.13s, box-shadow 0.13s;
}
.social-links a:hover, .social-links a:focus {
  background: #DFB264;
  box-shadow: 0 8px 28px 0 rgba(255,216,113,0.13);
}
.legal-links {
  color: #E5E5E5;
  font-size: 13px;
  margin-top: 15px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.legal-links a {
  color: #FFD871;
  text-decoration: underline;
  font-size: 13px;
}
.legal-links a:hover, .legal-links a:focus {
  color: #DFB264;
}

/* ----------------- HERO, ADVANTAGES, BRANDS ----------------- */
/* General hero and sections styling */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
/* --- Brand logos grid (Marchi Trattati) --- */
.brands-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 45px;
  align-items: center;
  margin-bottom: 20px;
  margin-top: 10px;
}
.brands-list-grid span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.09rem;
  color: #191f29;
  font-weight: 600;
  background: #fff;
  padding: 10px 20px;
  border-radius: 22px;
  box-shadow: 0 1.5px 8px 0 rgba(192,169,92,0.07);
  margin-bottom: 10px;
}

/* ----------------- CONTENT STYLES & ELEMENTS ----------------- */
ul, ol {
  margin-left: 1.2em;
}
ul li, ol li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 11px;
  line-height: 1.7;
  color: #252b31;
  font-size: 1.03em;
}
ul li img, ol li img {
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  margin-right: 6px;
}
dl { margin-bottom: 13px; }
dt { font-weight: bold; margin-bottom: 4px; margin-top: 9px; color: #DFB264; }
dd { margin-bottom: 10px; font-size: 1rem; }

/* --- Lists in feature sections --- */
ul li::before {
  content: '';
  display: none;
}

ol {
  counter-reset: list;
}
ol li {
  counter-increment: list;
  list-style: none;
  padding-left: 36px;
}
ol li:before {
  content: counter(list) '.';
  color: #DFB264;
  position: absolute;
  left: 0; top: 0;
  font-weight: bold;
  font-family: 'Roboto Slab', serif;
  font-size: 1.1em;
}

/* ----------------- VISUAL EFFECTS & ANIMATIONS ----------------- */
.card, .testimonial-card, .cta, .brands-list-grid span, .main-footer-nav a, .mobile-nav a {
  transition: box-shadow 0.19s, transform 0.19s, background 0.18s, color 0.18s;
}
.card:active {
  transform: scale(0.99);
}

/* Micro-interaction: subtle shadow float on hover */
.card:hover, .brands-list-grid span:hover {
  box-shadow: 0 8px 30px 0 rgba(223,178,100,0.18);
  z-index: 3;
}
.testimonial-card:focus-within {
  outline: 2px solid #DFB264;
}

/* ----------------- RESPONSIVE LAYOUTS ----------------- */
@media (max-width: 991px) {
  .container {
    max-width: 96vw;
  }
  .brands-list-grid {
    gap: 22px 20px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .section, section {
    padding: 32px 8px;
    margin-bottom: 44px;
  }
  .brands-list-grid {
    flex-direction: column;
    gap: 15px 0;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .main-footer-nav {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 520px) {
  header .container {
    padding: 0 8px;
  }
  .section, section {
    padding: 20px 3px;
    border-radius: 16px;
  }
}

/* ----------------- COOKIE CONSENT BANNER ----------------- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #191f29e7;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 26px 16px 16px 16px;
  z-index: 120;
  box-shadow: 0 -2px 18px 0 rgba(37,51,64,0.28);
  animation: bannerIn 0.48s cubic-bezier(.86,.03,.07,1);
  gap: 16px;
}
@keyframes bannerIn {
  from { transform: translateY(100%); opacity:0; }
  to {transform: translateY(0);opacity:1;}
}
.cookie-consent-banner p {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 9px;
}
.cookie-consent-actions {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 9px;
}
.cookie-consent-btn {
  border: none;
  border-radius: 23px;
  font-size: 1.1rem;
  padding: 10px 28px;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  margin: 0;
  cursor: pointer;
  transition: background 0.14s, color 0.15s;
  box-shadow: 0 1.5px 7px 0 rgba(223,178,100,0.11);
}
.cookie-accept {
  background: #DFB264;
  color: #253340;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #FFD871;
}
.cookie-reject {
  background: transparent;
  color: #DFB264;
  border: 1.8px solid #DFB264;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #fff;
  color: #253340;
}
.cookie-settings {
  background: #253340;
  color: #FFD871;
  border: 1.8px solid #FFD871;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #FFD871;
  color: #253340;
}

/* ----------------- COOKIE CONSENT MODAL ----------------- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #253340cc;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
  animation: modalIn 0.37s cubic-bezier(.86,.03,.07,1);
}
@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #253340;
  border-radius: 20px;
  box-shadow: 0 4px 22px 0 rgba(37,51,64,0.18);
  padding: 36px 30px 30px 30px;
  min-width: 300px;
  width: 94vw;
  max-width: 410px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
  position: relative;
}
.cookie-modal .close {
  position: absolute;
  right: 13px; top: 9px;
  font-size: 1.7rem;
  background: transparent;
  color: #DFB264;
  border: none;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.12s;
}
.cookie-modal .close:hover, .cookie-modal .close:focus {
  background: #F5F4F0;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 7px;
}
.cookie-category {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0 7px 0;
  width: 100%;
}
.cookie-category label {
  color: #253340;
  font-weight: 600;
  font-size: 1rem;
}
.cookie-toggle {
  width: 39px;
  height: 23px;
  background: #ccc;
  border-radius: 14px;
  position: relative;
  margin-left: 10px;
  transition: background 0.18s;
  vertical-align: middle;
  display: inline-block;
}
.cookie-toggle input[type="checkbox"] {
  width: 0;
  height: 0;
  opacity: 0;
  position: absolute;
}
.cookie-toggle-slider {
  position: absolute;
  left: 3px; top: 3px;
  width: 17px; height: 17px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s, background 0.18s;
}
.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-slider {
  left: 19px;
  background: #DFB264;
}
.cookie-toggle input[type="checkbox"]:checked ~ .cookie-toggle {
  background: #DFB264;
}
.cookie-category.essential label {
  color: #2e9646;
}
.cookie-modal-actions {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 26px;
  justify-content: flex-end;
}
.cookie-modal-actions .cookie-accept, .cookie-modal-actions .cookie-reject {
  min-width: 80px;
}

/* ----------------- MISC & ACCESSIBILITY ----------------- */
:focus-visible {
  outline: 2px solid #DFB264;
  outline-offset: 2px;
}
::-webkit-scrollbar {
  width: 8px;
  background: #DFB26422;
}
::-webkit-scrollbar-thumb {
  background: #DFB264;
  border-radius: 16px;
}

/* ----------------- END OF STYLE.CSS ----------------- */
