/* =========================================================
   RESET & BASE: Consistent, modern reset and box sizing
========================================================= */
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, menu, 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, 
main, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  background: #F7F5F2;
  color: #18222F;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.42,0,.58,1);
}
a:focus {
  outline: 2px solid #CBA557;
  outline-offset: 2px;
}

/* ================================
   BRAND FONTS & ROOT VARIABLES
================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Lato:wght@400;700;900&display=swap');
:root {
  --primary: #18222F;
  --secondary: #CBA557;
  --accent: #F7F5F2;
  --border-radius: 16px;
  --shadow: 0 4px 28px rgba(24,34,47,0.09), 0 1.5px 6px rgba(203,165,87,0.1);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Lato', Arial, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.5rem;
  line-height: 1.3;
}
h4, h5, h6 {
  font-size: 1.15rem;
}
p, ul li, table, .footer-copy {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 12px;
}
strong {
  font-weight: 900;
  color: var(--secondary);
}

/* ===========================
   LAYOUT UTILITY CLASSES
=========================== */
.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  background: #fff;
  padding: 28px 24px;
  position: relative;
  flex: 1 1 320px;
  min-width: 280px;
  transition: box-shadow 0.25s cubic-bezier(.42,0,.58,1), transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 36px rgba(24,34,47,0.17), 0 2px 8px rgba(203,165,87,0.18);
  transform: translateY(-5px) scale(1.025);
}
.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: flex-start;
  gap: 14px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-left: 6px solid var(--secondary);
  transition: box-shadow 0.2s;
}
.testimonial-card span {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.testimonial-card p {
  color: #18222F;
  font-size: 1.08rem;
  font-weight: 500;
  font-family: var(--font-body);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ====================================
   HEADER & MAIN NAVIGATION (Desktop)
==================================== */
header {
  width: 100%;
  background: #fff;
  border-bottom: 2px solid var(--accent);
  z-index: 1010;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
  gap: 16px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-family: var(--font-body);
  font-weight: 900;
  letter-spacing: 0.015em;
  font-size: 1.09rem;
  text-transform: uppercase;
  transition: color 0.18s, background 0.18s;
  color: var(--primary);
  padding: 6px 0px;
  position: relative;
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: var(--secondary);
  transition: width 0.18s cubic-bezier(.42,0,.58,1);
  position: absolute;
  left: 0;
  bottom: -7px;
  border-radius: 2px;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 80%;
}
.main-nav a.cta-btn {
  background: var(--secondary);
  color: #fff!important;
  padding: 10px 28px;
  border-radius: 24px;
  margin-left: 12px;
  font-family: var(--font-display);
  font-size: 1.07rem;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.15s;
  box-shadow: 0 2px 7px rgba(203,165,87,0.13);
  border: none;
}
.main-nav a.cta-btn:hover, .main-nav a.cta-btn:focus {
  background: var(--primary);
  color: var(--secondary)!important;
  box-shadow: 0 5px 18px rgba(24,34,47,0.12);
}

.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  border: none;
  border-radius: 12px;
  padding: 5px 16px;
  margin-left: 18px;
  transition: background 0.18s, box-shadow 0.17s;
  cursor: pointer;
  z-index: 1050;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary);
  color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 2px var(--secondary);
}

/* ================================
   MOBILE MENU (Hamburger Slider)
================================ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,34,47,0.96);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.53,.21,.29,.96);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.3rem;
  border: none;
  position: absolute;
  top: 22px;
  right: 32px;
  cursor: pointer;
  z-index: 1220;
  transition: color 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 100px 44px 44px 38px;
  width: 100vw;
  box-sizing: border-box;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  padding: 12px 0 8px 0;
  border-bottom: 1px solid rgba(203,165,87,0.22);
  transition: color 0.21s, background 0.17s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--secondary);
  background: none;
}

/* Hide main nav on mobile */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===============================
   HERO SECTION & CTA BUTTONS
================================ */
.hero {
  background: linear-gradient(100deg,#fff 60%,#CBA557 140%);
  padding: 60px 0 40px 0;
  min-height: 370px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  max-width: 730px;
  padding: 0;
  gap: 18px;
}
.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.16rem;
  letter-spacing: 0.045em;
  background: var(--secondary);
  color: #fff !important;
  text-transform: uppercase;
  padding: 14px 38px;
  border-radius: 32px;
  box-shadow: 0 3px 14px rgba(203,165,87,.11);
  border: none;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, box-shadow 0.2s, transform 0.16s;
  margin: 18px 0 0 0;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: var(--secondary)!important;
  box-shadow: 0 9px 30px rgba(24,34,47,0.12);
  transform: translateY(-3px) scale(1.04);
}

/* ===========================================
   FEATURE & CARD GRID (e.g. auto-di-lusso)
=========================================== */
.feature-grid,
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div, .team-list > div {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  padding: 26px 22px;
  min-width: 230px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.17s;
}
.feature-grid > div:hover, .team-list > div:hover {
  box-shadow: 0 8px 32px rgba(24,34,47,0.18);
  transform: translateY(-3px) scale(1.03);
}
.team-list h3 {
  font-size: 1.22rem;
  color: var(--secondary);
}

/* =========================
   TABLES (tariffe)
========================= */
table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  border-radius: var(--border-radius);
  overflow: hidden;
}
th, td {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 15px 10px;
  text-align: left;
}
th {
  font-weight: 900;
  background: var(--secondary);
  color: #fff;
}
tbody tr {
  border-bottom: 1px solid #EEECE7;
  transition: background 0.13s;
}
tbody tr:hover {
  background: #FFF8E1;
}

/* =============================
   FOOTER
============================= */
footer {
  background: var(--primary);
  color: #fff;
  padding: 48px 0 18px 0;
  border-top: 5px solid var(--secondary);
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  display: flex;
  gap: 24px;
}
.footer-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 1150px;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-content > *:not(:last-child) {
  margin-right: 22px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.04rem;
  transition: color 0.16s, text-decoration 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
  text-decoration: underline;
}
.footer-contact p {
  font-size: 0.97rem; color: #EEECE7; margin: 0 0 4px 0;
}
.footer-copy {
  font-family: var(--font-body);
  color: #f1e1bf;
  font-size: 0.95rem;
  margin: 24px 0 0 0;
}

/* =================================
   BUTTONS & INTERACTIVES - General
================================= */
button, [type=button], [type=submit] {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.06rem;
  border-radius: 26px;
  border: none;
  background: var(--secondary);
  color: #fff;
  padding: 10px 30px;
  box-shadow: 0 2px 10px rgba(203,165,87,0.16);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.15s;
}
button:focus, button:hover, [type=button]:focus, [type=button]:hover {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 6px 16px rgba(24,34,47,0.14);
  outline: none;
}

/* =====================================
   ADDITIONAL SPACING FOR LISTS/ULS
===================================== */
ul, ol {
  margin-bottom: 15px;
  padding-left: 20px;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 0px;
}
ul li::marker {
  color: var(--secondary);
}
ul li { list-style: disc inside; }

/* ====================
   FORMS
==================== */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 10px;
  border: 1.5px solid #c0c0c0;
  padding: 13px 16px;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  margin-bottom: 18px;
  transition: border 0.18s, box-shadow 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 1.5px 8px rgba(203,165,87,.13);
}
label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.99rem;
  margin-bottom: 6px;
  color: var(--primary);
  display: block;
}

/* ================================
   COOKIE CONSENT BANNER & MODAL
================================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: #fff;
  color: var(--primary);
  border-top: 3px solid var(--secondary);
  box-shadow: 0 -7px 22px rgba(24,34,47, 0.19);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 18px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  min-height: 64px;
  animation: cookieBannerIn 0.5s cubic-bezier(.6,-0.01, 0.19, 1.18);
}
@keyframes cookieBannerIn {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.cookie-banner .cookie-btn {
  background: var(--secondary);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1rem;
  border-radius: 22px;
  padding: 10px 18px;
  border: none;
  margin-right: 4px;
  cursor: pointer;
  transition: background 0.18s, color 0.17s;
}
.cookie-banner .cookie-btn:focus,
.cookie-banner .cookie-btn:hover {
  background: var(--primary);
  color: var(--secondary);
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  font-weight: 700;
}
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-settings-btn:focus {
  background: var(--secondary);
  color: #fff;
}
/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right:0; top:0; bottom:0;
  background: rgba(24,34,47,0.60);
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .2s cubic-bezier(.35,0,0,1.3);
}
@keyframes fadeIn {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: var(--border-radius);
  box-shadow: 0 7px 40px rgba(24,34,47,0.23);
  width: 92vw; max-width: 410px;
  padding: 40px 26px 28px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  animation: popIn .25s cubic-bezier(.53,.21,.29,.96);
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.94) translateY(34px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal .close-modal-btn {
  position: absolute;
  top: 15px; right: 15px;
  background: transparent;
  color: var(--secondary);
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal .close-modal-btn:hover {
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 10px;
}
.cookie-category input[type=checkbox] {
  width: 26px; height: 26px;
  accent-color: var(--secondary);
  border-radius: 7px;
  margin-right: 6px;
}
.cookie-category-label {
  font-weight: 700; color: var(--primary);
}
.cookie-category-description {
  font-size: 0.96rem; color: #888; margin-left: 3px;
}

/* =============================
   RESPONSIVE DESIGN
============================= */
@media (max-width: 1200px) {
  .container { max-width: 970px; }
  .footer-content { flex-direction: column; gap: 20px; }
}
@media (max-width: 992px) {
  .container { max-width: 93vw; }
  .footer-content { flex-direction: column; gap: 18px; }
  .feature-grid > div, .team-list > div {
    min-width: 200px;
    flex: 1 1 220px;
    padding: 18px 12px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .section {
    margin-bottom: 38px;
    padding: 28px 6px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .card-container, .feature-grid, .team-list, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card, .card {
    padding: 16px 10px;
    margin-bottom: 16px;
  }
  .footer-content {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .hero { padding: 30px 0 12px 0; }
  .hero .content-wrapper { padding: 0; }
  .mobile-nav { padding-left:22px;padding-right:13px; }
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 14px 13px;
    font-size: 0.98rem;
    align-items: flex-start;
  }
}
@media (max-width: 540px) {
  .container { padding: 0 4vw; }
  .section { padding: 10px 0 30px 0; }
  .hero { min-height: 180px; }
  .footer-content { gap: 10px; }
}
/* Ensure column stacking */
@media (max-width: 990px) {
  .text-image-section { flex-direction: column; gap: 18px; }
  .content-grid { flex-direction: column; gap: 16px; }
}

/* ===================================
   MICRO-INTERACTIONS & TRANSITIONS
=================================== */
.cta-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  text-align: left;
}
.cta-section p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 1.06rem;
}
.cta-section img {
  width: 20px; height: 20px; margin-right: 4px;
  filter: grayscale(0.3) brightness(0.7);
}

/* ================================
   MISC. / OVERRIDES
================================ */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 8px;
}
::-webkit-scrollbar-track {
  background: #efe6cb;
}

/* Prevent accidental overlaps and ensure spacing */
.section > *:not(:last-child) {
  margin-bottom: 20px;
}
.card-container > .card:not(:last-child),
.feature-grid > div:not(:last-child),
.team-list > div:not(:last-child),
.content-grid > div:not(:last-child),
.testimonial-card:not(:last-child) {
  margin-bottom: 20px;
}

/* Utility geometric bold highlights (e.g., decorative lines) */
h2::after, .section-title::after {
  content: "";
  display: block;
  width: 38px;
  height: 6px;
  background: var(--secondary);
  border-radius: 8px;
  margin-top: 7px;
}

/* Accessibility improvements for focus: */
:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* END OF STYLE SHEET */
