:root {
  /* Colori */
  --color-primary: #50B8B2;
  --color-secondary: #B1E1DD;
  --color-accent: #3A4750; /* Usiamo footer_bg_color_hex come colore d'accento per un contrasto elegante */
  --color-text: #3A4750;
  --color-text-light: #F8FCFB;
  --color-bg: #F8FCFB;
  --color-button: #50B8B2;

  /* Colori di sezione */
  --section-bg-1: #F8FCFB;
  --section-bg-2: #E0F2F1;
  --section-bg-3: #D0E8E6;
  --section-bg-4: #C0DFDE;
  --section-bg-5: #AED6D4;
  --section-bg-6: #9BCFCB;

  /* Tipografia - Font giocosi ma leggibili per un tocco moderno e intuitivo */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
  --font-size-base: 18px; /* Leggermente più grande per una migliore leggibilità */

  /* Spaziatura */
  --spacing-unit: 8px;
  --spacing-xs: calc(var(--spacing-unit) * 1);   /* 8px */
  --spacing-sm: calc(var(--spacing-unit) * 2);   /* 16px */
  --spacing-md: calc(var(--spacing-unit) * 3);   /* 24px */
  --spacing-lg: calc(var(--spacing-unit) * 5);   /* 40px */
  --spacing-xl: calc(var(--spacing-unit) * 8);   /* 64px */
  --spacing-xxl: calc(var(--spacing-unit) * 12);  /* 96px */

  /* Effetti visivi */
  --border-radius: 12px; /* Arrotondamento morbido */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
  --transition-speed: 0.3s;
  --transition-easing: cubic-bezier(0.4, 0, 0.2, 1); /* Ease-in-out */
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

/* Reset e stili base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-accent);
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

h1 { font-size: calc(var(--font-size-base) * 2.8); } /* 50.4px */
h2 { font-size: calc(var(--font-size-base) * 2.2); } /* 39.6px */
h3 { font-size: calc(var(--font-size-base) * 1.8); } /* 32.4px */
h4 { font-size: calc(var(--font-size-base) * 1.4); } /* 25.2px */
h5 { font-size: calc(var(--font-size-base) * 1.2); } /* 21.6px */
h6 { font-size: calc(var(--font-size-base) * 1);   } /* 18px */

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-easing);
}

a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

ul, ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

li {
  margin-bottom: var(--spacing-xs);
}

/* Layout e contenitori */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

/* Sfondi di sezione con colori del testo appropriati */
.section-bg-1 {
  background-color: var(--section-bg-1);
  color: var(--color-text) !important;
}
.section-bg-1 h1, .section-bg-1 h2, .section-bg-1 h3, .section-bg-1 h4, .section-bg-1 h5, .section-bg-1 h6, .section-bg-1 p, .section-bg-1 span, .section-bg-1 div {
  color: var(--color-text) !important;
}

.section-bg-2 {
  background-color: var(--section-bg-2);
  color: var(--color-text) !important;
}
.section-bg-2 h1, .section-bg-2 h2, .section-bg-2 h3, .section-bg-2 h4, .section-bg-2 h5, .section-bg-2 h6, .section-bg-2 p, .section-bg-2 span, .section-bg-2 div {
  color: var(--color-text) !important;
}

.section-bg-3 {
  background-color: var(--section-bg-3);
  color: var(--color-text) !important;
}
.section-bg-3 h1, .section-bg-3 h2, .section-bg-3 h3, .section-bg-3 h4, .section-bg-3 h5, .section-bg-3 h6, .section-bg-3 p, .section-bg-3 span, .section-bg-3 div {
  color: var(--color-text) !important;
}

.section-bg-4 {
  background-color: var(--section-bg-4);
  color: var(--color-text) !important;
}
.section-bg-4 h1, .section-bg-4 h2, .section-bg-4 h3, .section-bg-4 h4, .section-bg-4 h5, .section-bg-4 h6, .section-bg-4 p, .section-bg-4 span, .section-bg-4 div {
  color: var(--color-text) !important;
}

.section-bg-5 {
  background-color: var(--section-bg-5);
  color: var(--color-text) !important;
}
.section-bg-5 h1, .section-bg-5 h2, .section-bg-5 h3, .section-bg-5 h4, .section-bg-5 h5, .section-bg-5 h6, .section-bg-5 p, .section-bg-5 span, .section-bg-5 div {
  color: var(--color-text) !important;
}

.section-bg-6 {
  background-color: var(--section-bg-6);
  color: var(--color-text) !important;
}
.section-bg-6 h1, .section-bg-6 h2, .section-bg-6 h3, .section-bg-6 h4, .section-bg-6 h5, .section-bg-6 h6, .section-bg-6 p, .section-bg-6 span, .section-bg-6 div {
  color: var(--color-text) !important;
}


/* Bottoni con gradienti soft e micro-interazioni */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: calc(var(--font-size-base) * 0.9);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition-speed) var(--transition-easing);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.02em;
}

.btn-primary {
  background-color: var(--color-button);
  color: var(--color-text-light);
  background-image: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  border: 1px solid var(--color-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background-image: linear-gradient(45deg, var(--color-secondary), var(--color-primary));
  border-color: var(--color-secondary);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Card con bordi leggermente arrotondati e ombre morbide */
.card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  transition: transform var(--transition-speed) var(--transition-easing), box-shadow var(--transition-speed) var(--transition-easing);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Campi input e form */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: var


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}