/* RESET & NORMALIZE */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
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,
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;
}
body { line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { border: 0; max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; border-spacing: 0; }
input, button, textarea, select { font: inherit; outline: none; }

:root {
  --primary: #92416E;
  --primary-bright: #B55B8B;
  --secondary: #4A2641;
  --secondary-dark: #283043;
  --accent: #F3EFEA;
  --text: #222;
  --white: #fff;
  --warning: #ffb12d;
  --success: #12cd80;
  --error: #e5446d;
}

body {
  font-family: 'Nunito', Arial, sans-serif;
  background: var(--accent);
  color: var(--text);
  font-size: 16px;
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* GENERAL CONTAINERS & FLEX LAYOUTS */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
/* For all main sections (hero, promo, testimonials, etc.) */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 24px 0 rgba(146,65,110,0.08), 0 1.5px 10px 0 rgba(40,48,67,0.05);
  padding: 32px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-6px) scale(1.025) rotate(-1deg);
  box-shadow: 0 8px 40px 0 rgba(146,65,110,0.14),0 5px 24px 0 rgba(40,48,67,0.10);
}

.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: 20px;
  padding: 28px 32px;
  background: var(--accent);
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 24px 0 rgba(40,48,67,0.06);
  border-left: 6px solid var(--primary-bright);
  font-size: 18px;
  color: #232626;
  max-width: 620px;
}
.testimonial-slider-short {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

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

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div {
  min-width: 220px;
  flex: 1 1 240px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 3px 16px 0 rgba(146,65,110,0.07);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.feature-grid > div:hover {
  box-shadow: 0 7px 32px 0 rgba(40,48,67,0.14);
  transform: translateY(-3px) scale(1.025);
}

/* HERO */
.hero {
  background: linear-gradient(102deg, var(--primary-bright) 0%, var(--primary) 55%, var(--secondary-dark) 100%);
  color: var(--white);
  padding: 52px 0 56px 0;
  margin-bottom: 72px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 20px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.17;
  letter-spacing: -1.2px;
  text-shadow: 0 2px 14px rgba(40,48,67,0.20);
}
.hero p {
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 18px;
  max-width: 580px;
}

/* TEXT SECTIONS */
.text-section {
  gap: 20px;
  line-height: 1.6;
}
.text-section h2, .text-section h1 {
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.text-section h1 {
  font-size: 2rem;
}
.text-section h2 {
  font-size: 1.5rem;
  margin-top: 18px;
}
.text-section p, .text-section ul, .text-section li {
  font-size: 1.13rem;
}
.text-section ul {
  margin: 16px 0 16px 12px;
  list-style: disc inside;
  padding-left: 1em;
  color: var(--secondary-dark);
}
.text-section li {
  margin-bottom: 10px;
}

/* CTA BUTTONS / LINKS */
.cta-btn, .cta-link {
  display: inline-block;
  background: var(--primary-bright);
  color: var(--white);
  border-radius: 99px;
  padding: 14px 36px;
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 8px;
  margin-bottom: 6px;
  border: none;
  box-shadow: 0 2px 12px 0 rgba(146,65,110,0.12);
  cursor: pointer;
  transition: background 0.20s, transform 0.18s, box-shadow 0.15s;
  outline: none;
  position: relative;
  z-index: 1;
}
.cta-btn:hover, .cta-link:hover, .cta-btn:focus, .cta-link:focus {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 5px 24px 0 rgba(40,48,67,0.14);
}
.cta-link {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 12px 32px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: .04em;
}
.cta-link:hover, .cta-link:focus {
  background: var(--primary);
  color: var(--white);
}

/* CTA BANNER */
.cta-banner {
  background: var(--primary-bright);
  color: var(--white);
  padding: 48px 0 40px 0;
  text-align: center;
  border-radius: 20px;
  box-shadow: 0 6px 44px 0 rgba(146,65,110,0.12);
}
.cta-banner h2 {
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -1.3px;
  color: var(--white);
}

/* TABLES (Listino prezzi) */
table {
  width: 100%;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 1.5px 10px 0 rgba(146,65,110,0.14);
  margin-bottom: 18px;
  overflow: hidden;
  font-size: 1rem;
}
thead tr {
  background: var(--primary-bright);
  color: var(--white);
  font-size: 1.068rem;
}
th, td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid #e7e2ef;
}
thead th {
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: .04em;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* HEADER AND MAIN NAV STYLES */
header {
  background: var(--white);
  border-bottom: 2px solid var(--primary-bright);
  position: sticky;
  top: 0;
  z-index: 1002;
  box-shadow: 0 6px 32px 0 rgba(146,65,110,0.09);
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img {
  height: 48px;
  margin-top: 2px;
  margin-right: 24px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
nav a {
  color: var(--secondary-dark);
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 1rem;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.17s;
}
nav a:hover, nav a:focus {
  background: var(--primary-bright);
  color: var(--white);
}
header .cta-btn {
  margin-left: 22px;
}

/* FOOTER */
footer {
  background: var(--secondary);
  color: var(--accent);
  padding: 32px 0 14px 0;
  margin-top: 60px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
footer nav {
  gap: 18px;
  margin-bottom: 6px;
}
footer nav a {
  color: var(--accent);
  padding: 5px 10px;
  text-transform: none;
  font-size: 1rem;
}
footer nav a:hover,footer nav a:focus {
  color: var(--primary-bright);
  background: none;
}

footer p {
  font-size: 0.98rem;
  color: #e0d8ea;
}

/* TESTIMONIALS — Card and Section */
.testimonial-card p {
  font-style: italic;
  font-size: 1.12rem;
  margin-bottom: 3px;
}
.testimonial-card span {
  color: var(--primary);
  font-size: 1.03rem;
  font-weight: 700;
}

.testimonial-card div {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  font-size: 1.1em;
}
.testimonial-card .stars, .testimonial-card span:first-child {
  color: var(--warning);
  font-weight: bold;
  font-size: 1.3em;
  letter-spacing: .2em;
}

/* MAP EMBED PLACEHOLDER */
.map-embed-placeholder {
  border: 2px dashed var(--primary-bright);
  background: var(--accent);
  color: var(--secondary-dark);
  border-radius: 14px;
  text-align: center;
  padding: 28px 12px;
  margin: 16px 0;
  font-size: 1.11rem;
  font-style: italic;
}

/* Hamburger/Mobile NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: var(--primary-bright);
  color: var(--white);
  border: none;
  border-radius: 14px;
  font-size: 2rem;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px 0 rgba(40,48,67,0.14);
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 1051;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--primary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--secondary-dark);
  color: var(--accent);
  z-index: 1050;
  transform: translateX(-105vw);
  transition: transform 0.33s cubic-bezier(.82,.16,.37,1.18);
  padding: 32px 28px 18px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  background: none;
  color: var(--white);
  border: none;
  font-size: 2.2rem;
  position: absolute;
  top: 30px;
  right: 26px;
  cursor: pointer;
  z-index: 1060;
  transition: color 0.14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--primary-bright);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 22px;
  width: 100%;
}
.mobile-nav a {
  color: var(--accent);
  font-size: 1.32rem;
  font-family: 'Nunito', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 13px 0;
  border-radius: 0;
  text-align: left;
  transition: color 0.15s, background 0.15s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--primary-bright);
  background: none;
}

/* Responsive spacing and layout rules */
@media (max-width: 1000px) {
  .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 800px) {
  .feature-grid > div {
    min-width: 180px;
    flex-basis: 44%;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .hero {
    padding: 38px 0 40px 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .content-wrapper, .text-section {
    gap: 18px;
  }
  .feature-grid, .testimonial-slider-short {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div, .testimonial-card {
    min-width: 0;
    width: 100%;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .cta-btn {
    display: none;
  }
  /* prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
  .text-image-section {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}
@media (max-width: 540px) {
  .hero {
    padding: 18px 0 26px 0;
  }
  .section, section {
    padding: 26px 0;
    margin-bottom: 36px;
  }
  .container {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .cta-btn, .cta-link {
    padding: 11px 22px;
    font-size: 1rem;
  }
}

/* FONTS & HEADING HIERARCHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 7px;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.37rem; }
h3 { font-size: 1.1rem; }
p, li {
  font-family: 'Nunito', Arial, sans-serif;
  color: var(--secondary-dark);
  font-size: 1.05rem;
}
strong {
  color: var(--primary);
  font-weight: 900;
}
em {
  font-style: italic;
  color: var(--primary-bright);
}

/* LINKS */
a {
  transition: color 0.17s, background 0.12s;
}
a:focus {
  outline: 2px solid var(--primary-bright);
  outline-offset: 2px;
}

/* SHADOWS AND EFFECTS */
.card, .feature-grid > div, .cta-banner,
section, .testimonial-card {
  box-shadow: 0 1.5px 10px 0 rgba(146,65,110,0.10);
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--secondary-dark);
  color: var(--accent);
  z-index: 1100;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 8vw 20px 8vw;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -6px 28px 0 rgba(40,48,67,.18);
  gap: 18px;
  font-size: 1.05rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
  transition: opacity 0.26s, transform 0.33s cubic-bezier(.71,.18,.47,1.14);
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner p {
  flex: 1 1 300px;
  margin-right: 14px;
  color: var(--accent);
}
.cookie-banner .cookie-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 15px;
  align-items: center;
}
.cookie-btn {
  border-radius: 99px;
  padding: 10px 22px;
  font-weight: bold;
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(146,65,110,0.10);
  margin: 0 2px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cookie-btn.accept {
  background: var(--primary-bright);
  color: var(--white);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px 0 rgba(146,65,110,0.19);
}
.cookie-btn.reject {
  background: transparent;
  border: 2px solid var(--error);
  color: var(--error);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--error);
  color: #fff;
}
.cookie-btn.settings {
  background: transparent;
  border: 2px solid var(--primary-bright);
  color: var(--primary-bright);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--primary-bright);
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1200;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(40,48,67,.76);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(.72,.03,.31,.9);
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: var(--accent);
  color: var(--secondary-dark);
  border-radius: 24px;
  box-shadow: 0 14px 56px 0 rgba(146,65,110,0.18);
  max-width: 380px;
  width: 92vw;
  padding: 34px 26px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: modalIn 0.47s cubic-bezier(.71,.18,.47,1.14);
}
@keyframes modalIn {
  from { transform: scale(0.85) translateY(32px); }
  to { transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex; align-items: center; gap: 14px; margin-bottom: 10px;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--primary-bright);
  width: 20px; height: 20px; margin: 0;
}
.cookie-category label {
  font-weight: 600; font-size: 1.08rem; color: var(--secondary-dark);
}
.cookie-category[data-essential] label {
  color: var(--success);
}
.cookie-category[data-essential] input[type=checkbox] {
  pointer-events: none; opacity: 0.6;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--primary-bright);
  font-size: 1.5em;
  cursor: pointer;
  z-index: 1;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: var(--primary);
}

/* Animations / Micro-interactions */
.card, .testimonial-card, .feature-grid > div, .cta-banner, .cookie-btn, .cta-btn {
  transition: box-shadow 0.22s, border 0.15s, background 0.18s, color 0.18s, transform 0.22s;
}

/* SCROLLBAR (subtle vibrant accent) */
::-webkit-scrollbar {
  width: 9px;
  background: var(--accent);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-bright);
  border-radius: 6px;
}

/* Miscellaneous */
::-moz-selection { background: var(--primary-bright); color: #fff; }
::selection { background: var(--primary-bright); color: #fff; }

/* Hide overflow on mobile menu open */
body.mobile-menu-open {
  overflow: hidden;
}

/* Utility classes */
.text-center {
  text-align: center !important;
}
.text-right {
  text-align: right !important;
}
.text-left {
  text-align: left !important;
}

/* END CSS */
