/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CHE PALLE DI NATALE - MAIN STYLESHEET
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ━━━ CSS VARIABLES ━━━ */
:root {
  --red-christmas: #C41E3A;
  --green-dark: #165B33;
  --green-medium: #1a7a42;
  --green-darker: #0d3d1a;
  --gold: #FFD700;
  --white: #FFFFFF;
  --gray-light: #F5F5F5;
  --gray-medium: #CCCCCC;
  --gray-dark: #333333;
  --black: #000000;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);

  --transition: all 0.3s ease;
}

/* ━━━ RESET & BASE STYLES ━━━ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-dark);
  line-height: 1.6;
  background: linear-gradient(135deg, var(--green-darker) 0%, var(--green-dark) 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ━━━ TYPOGRAPHY ━━━ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* ━━━ LAYOUT UTILITIES ━━━ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--gray-dark);
}

.section-alt {
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.15), rgba(22, 91, 51, 0.15));
  backdrop-filter: blur(10px);
  color: var(--white);
}

.section-alt h1,
.section-alt h2,
.section-alt h3,
.section-alt h4,
.section-alt h5,
.section-alt h6 {
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-alt p,
.section-alt .card p,
.section-alt li {
  color: var(--white);
}

.text-center {
  text-align: center;
}

/* ━━━ HEADER & NAVIGATION ━━━ */
.header {
  position: sticky;
  top: 0;
  background: #165B33;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  padding: 1rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(196, 30, 58, 0.5);
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--gold);
}

.logo-img {
  height: 60px;
  width: auto;
  display: block;
  transition: var(--transition);
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  font-weight: 600;
  color: var(--white);
}

.nav a:hover {
  color: var(--gold);
}

.social-icons {
  display: flex;
  gap: 1rem;
  font-size: 1.25rem;
}

.social-icons a:hover {
  color: var(--red-christmas);
  transform: scale(1.1);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--white);
  transition: var(--transition);
}

/* ━━━ BUTTONS ━━━ */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--green-dark);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #1a7a42;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--red-christmas);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #d92b48;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--green-dark);
  color: var(--green-dark);
}

.btn-outline:hover {
  background-color: var(--green-dark);
  color: var(--white);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* ━━━ HERO SECTION ━━━ */
.hero {
  background: linear-gradient(135deg, var(--red-christmas), var(--green-dark));
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ━━━ HERO INTERNO (Pagine interne) ━━━ */
.hero-internal {
  background: linear-gradient(135deg, var(--green-dark), var(--red-christmas));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.breadcrumb {
  font-size: 0.9rem;
  margin-top: 1rem;
  opacity: 0.9;
}

.breadcrumb a {
  text-decoration: underline;
}

/* ━━━ GRID LAYOUTS ━━━ */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* ━━━ CARDS ━━━ */
.card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  color: var(--gray-dark);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--red-christmas);
  margin-bottom: 1rem;
}

.card p,
.card li {
  color: var(--gray-dark);
}

.card-horizontal {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  text-align: left;
}

.card-horizontal .card-icon {
  flex-shrink: 0;
}

/* ━━━ GALLERY ━━━ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ━━━ LIGHTBOX ━━━ */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: var(--white);
  cursor: pointer;
  font-weight: 300;
}

/* ━━━ CTA SECTION ━━━ */
.cta-section {
  background: linear-gradient(135deg, var(--red-christmas), #d92b48);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

/* ━━━ TIMELINE (Come Funziona) ━━━ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto;
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 3rem;
}

.timeline-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--red-christmas), var(--green-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 50px;
  width: 2px;
  height: calc(100% + 3rem);
  background-color: var(--gray-medium);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-content h3 {
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

/* ━━━ PRICING TABLE ━━━ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.price-card {
  background-color: var(--white);
  border: 2px solid var(--gray-medium);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.price-card:hover {
  border-color: var(--red-christmas);
  box-shadow: var(--shadow-md);
  transform: scale(1.05);
}

.price-card.featured {
  border-color: var(--green-dark);
  border-width: 3px;
  background: linear-gradient(to bottom, var(--white), var(--gray-light));
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--red-christmas);
  margin: 1rem 0;
}

.price-label {
  font-size: 0.9rem;
  color: var(--gray-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.savings {
  display: inline-block;
  background-color: var(--gold);
  color: var(--black);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ━━━ TABLE ━━━ */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
  overflow: hidden;
}

thead {
  background: linear-gradient(135deg, var(--green-dark), var(--red-christmas));
  color: var(--white);
}

th, td {
  padding: 1rem;
  text-align: left;
}

tbody tr:nth-child(even) {
  background-color: var(--gray-light);
}

tbody tr:hover {
  background-color: #ffe6ea;
}

th {
  font-family: var(--font-heading);
  font-weight: 600;
}

tr.highlighted {
  background-color: #fff8dc !important;
  font-weight: 600;
}

/* ━━━ FAQ ACCORDION ━━━ */
.faq {
  max-width: 800px;
  margin: 2rem auto;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--gray-medium);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background-color: var(--gray-light);
  border: none;
  padding: 1.25rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--gray-medium);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--red-christmas);
  transition: var(--transition);
}

.faq-question.active::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.25rem;
}

.faq-answer.active {
  max-height: 500px;
  padding: 1.25rem;
}

/* ━━━ FORMS ━━━ */
.form {
  max-width: 600px;
  margin: 2rem auto;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--gray-medium);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(22, 91, 51, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  cursor: pointer;
}

.required {
  color: var(--red-christmas);
}

.form-note {
  font-size: 0.9rem;
  color: var(--gray-dark);
  font-style: italic;
  margin-top: 0.5rem;
}

/* ━━━ ALERT / SUCCESS MESSAGE ━━━ */
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ━━━ HIGHLIGHT BOX ━━━ */
.highlight-box {
  background: linear-gradient(135deg, #fff8dc, #ffe6ea);
  border-left: 4px solid var(--red-christmas);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ━━━ LIST STYLED ━━━ */
.list-styled {
  list-style: none;
  margin: 1.5rem 0;
}

.list-styled li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
}

.list-styled li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ━━━ FOOTER ━━━ */
.footer {
  background: linear-gradient(135deg, var(--green-darker) 0%, var(--green-dark) 100%);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer a {
  color: var(--white);
  display: block;
  margin-bottom: 0.5rem;
}

.footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ━━━ RESPONSIVE DESIGN ━━━ */
@media (max-width: 768px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  /* Navigation */
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #165B33;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav.active {
    max-height: 500px;
  }

  .nav a {
    padding: 1rem 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .social-icons {
    padding: 0 20px;
  }

  /* Hero */
  .hero {
    padding: 60px 0;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* Sections */
  .section {
    padding: 40px 0;
  }

  /* Grid */
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  /* Card Horizontal */
  .card-horizontal {
    flex-direction: column;
    text-align: center;
  }

  /* Timeline */
  .timeline-item {
    padding-left: 60px;
  }

  .timeline-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .timeline-item::before {
    left: 19px;
  }

  /* Table */
  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 0.75rem 0.5rem;
  }

  /* Form */
  .form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .btn-lg {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

/* ━━━ UTILITY CLASSES ━━━ */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ━━━ SNOWFLAKES ANIMATION ━━━ */
.snowflake {
  position: fixed;
  top: -10px;
  z-index: 9999;
  user-select: none;
  cursor: default;
  animation-name: snowfall;
  animation-duration: 10s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  color: #ffffff;
  font-size: 1em;
  opacity: 0.8;
}

@keyframes snowfall {
  0% {
    transform: translateY(-10px) rotate(0deg);
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}

.snowflake:nth-of-type(2n) {
  animation-duration: 12s;
  font-size: 0.8em;
  opacity: 0.6;
}

.snowflake:nth-of-type(3n) {
  animation-duration: 14s;
  font-size: 1.2em;
  opacity: 0.7;
}

.snowflake:nth-of-type(4n) {
  animation-duration: 9s;
  font-size: 0.9em;
}

.snowflake:nth-of-type(5n) {
  animation-duration: 11s;
  font-size: 1.1em;
  opacity: 0.5;
}

/* ━━━ ADDITIONAL DARK THEME FIXES ━━━ */
.section-alt a:not(.btn) {
  color: var(--gold);
  text-decoration: underline;
}

.section-alt a:not(.btn):hover {
  color: var(--white);
}

.section-alt .card h3 {
  color: var(--red-christmas);
}

.section-alt strong {
  color: var(--white);
  font-weight: 700;
}

/* Keep bold text readable on light highlight boxes and tables */
.section-alt .highlight-box strong,
.section-alt table strong {
  color: inherit;
}

/* Fix breadcrumb visibility */
.breadcrumb {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a {
  color: var(--gold);
}

/* Fix price labels and text */
.section-alt .price-label {
  color: rgba(255, 255, 255, 0.8);
}

.section-alt .form-note {
  color: rgba(255, 255, 255, 0.7);
}

/* Ensure tables in alt sections are visible */
.section-alt table {
  background-color: rgba(255, 255, 255, 0.95);
}

.section-alt tbody tr {
  color: var(--gray-dark);
}

/* Logo responsive */
@media (max-width: 768px) {
  .logo-img {
    height: 45px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 40px;
  }
}

/* Fix reviews text color - ensure dark text on white cards */
.card em,
.card strong {
  color: var(--gray-dark) !important;
}

.section-alt .card em,
.section-alt .card strong {
  color: var(--gray-dark) !important;
}

/* Fix ALL text in cards to be dark and readable */
.section-alt .card p,
.section-alt .card li,
.section-alt .card span,
.section-alt .card div,
.section-alt .card ul,
.section-alt .card .price,
.section-alt .card .price-label {
  color: var(--gray-dark) !important;
}

.section-alt .card h3 {
  color: var(--red-christmas) !important;
}

/* Ensure links in cards remain visible with proper colors */
.section-alt .card a:not(.btn) {
  color: var(--red-christmas) !important;
  text-decoration: underline;
}

.section-alt .card a:not(.btn):hover {
  color: var(--green-dark) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   GDPR COMPLIANCE - COOKIE BANNER & LEGAL PAGES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--green-darker) 0%, var(--green-dark) 100%);
  color: var(--white);
  padding: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 300px;
}

.cookie-banner-text h3 {
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.cookie-banner-text p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.cookie-banner-text a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-banner-text a:hover {
  color: var(--white);
}

.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-banner button {
  padding: 10px 24px;
  border: none;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cookie-banner .btn-accept-all {
  background-color: var(--green-dark);
  color: var(--white);
}

.cookie-banner .btn-accept-all:hover {
  background-color: #1a7a42;
  transform: translateY(-2px);
}

.cookie-banner .btn-reject {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.cookie-banner .btn-reject:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cookie-banner .btn-customize {
  background-color: var(--gold);
  color: var(--black);
}

.cookie-banner .btn-customize:hover {
  background-color: #ffed4e;
  transform: translateY(-2px);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

.cookie-settings-modal.show {
  display: flex;
}

.cookie-settings-content {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.cookie-settings-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--gray-dark);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
}

.cookie-settings-close:hover {
  color: var(--red-christmas);
}

.cookie-settings-content h2 {
  color: var(--red-christmas);
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.cookie-category {
  background-color: var(--white);
  border: 1px solid var(--gray-medium);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cookie-category h3 {
  color: var(--green-dark);
  font-size: 1.1rem;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  width: 50px;
  height: 26px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-medium);
  transition: 0.3s;
  border-radius: 26px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: var(--green-dark);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-category-description {
  font-size: 0.95rem;
  color: var(--gray-dark);
  line-height: 1.5;
}

.cookie-category-required {
  display: inline-block;
  background-color: var(--gray-light);
  color: var(--gray-dark);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.cookie-settings-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-settings-buttons button {
  padding: 10px 24px;
  border: none;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-settings-buttons .btn-save {
  background-color: var(--green-dark);
  color: var(--white);
}

.cookie-settings-buttons .btn-save:hover {
  background-color: #1a7a42;
}

.cookie-settings-buttons .btn-cancel {
  background-color: var(--gray-medium);
  color: var(--gray-dark);
}

.cookie-settings-buttons .btn-cancel:hover {
  background-color: var(--gray-dark);
  color: var(--white);
}

/* Legal Content Styles */
.legal-content {
  line-height: 1.8;
  color: var(--gray-dark);
}

.legal-content h2 {
  color: var(--red-christmas);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red-christmas);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  color: var(--green-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content ul,
.legal-content ol {
  list-style: inherit;
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--green-dark);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--red-christmas);
}

.legal-content strong {
  font-weight: 600;
  color: var(--black);
}

.legal-content em {
  font-style: italic;
}

.legal-content code {
  background-color: var(--gray-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

/* Cookie Table */
.cookie-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  overflow: hidden;
}

.cookie-table thead {
  background: linear-gradient(135deg, var(--green-dark), var(--red-christmas));
  color: var(--white);
}

.cookie-table th,
.cookie-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-light);
}

.cookie-table tbody tr:nth-child(even) {
  background-color: var(--gray-light);
}

.cookie-table tbody tr:hover {
  background-color: #ffe6ea;
}

.cookie-table code {
  background-color: rgba(196, 30, 58, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  color: var(--red-christmas);
  font-weight: 600;
}

/* GDPR Checkbox in Forms */
.gdpr-consent {
  background-color: var(--gray-light);
  border: 1px solid var(--gray-medium);
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
}

.gdpr-consent label {
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.6;
}

.gdpr-consent a {
  color: var(--green-dark);
  text-decoration: underline;
}

.gdpr-consent a:hover {
  color: var(--red-christmas);
}

.gdpr-consent input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-text {
    min-width: auto;
  }

  .cookie-banner-buttons {
    width: 100%;
  }

  .cookie-banner-buttons button {
    flex: 1;
    min-width: 120px;
  }

  .cookie-settings-content {
    padding: 1.5rem;
  }

  .cookie-settings-buttons {
    flex-direction: column;
  }

  .cookie-settings-buttons button {
    width: 100%;
  }

  .legal-content {
    font-size: 0.95rem;
  }

  .cookie-table {
    font-size: 0.85rem;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 0.5rem;
  }
}
