/* SOlutica — Design System */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600;1,700&display=swap');

:root {
  --color-bg: #FAFAFA;
  --color-fg: #1A1A1A;
  --color-primary: #D12B2B;
  --color-primary-dark: #A31F1F;
  --color-card-bg: #FFFFFF;
  --color-border: #E0E0E0;
  --color-muted: #666666;
  --font-sans: 'Raleway', sans-serif;
}

.dark {
  --color-bg: #141414;
  --color-fg: #F2F2F2;
  --color-primary: #E63939;
  --color-primary-dark: #CC2424;
  --color-card-bg: #1F1F1F;
  --color-border: #333333;
  --color-muted: #A6A6A6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Container ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.dark header {
  background: rgba(20, 20, 20, 0.95);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 30px;
  width: auto;
  display: block;
}

.nav-links {
  display: none;
  gap: 2rem;
  list-style: none;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-links a {
  text-decoration: none;
  color: var(--color-fg);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(209, 43, 43, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-fg);
}

.btn-outline:hover {
  background: var(--color-card-bg);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
}

/* ── Mobile Menu ── */
.mobile-menu-btn {
  display: block;
}

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

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  padding: 2rem;
  overflow-y: auto;
  z-index: 40;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu nav ul {
  list-style: none;
}

.mobile-menu nav li {
  margin-bottom: 1.5rem;
}

.mobile-menu nav a {
  text-decoration: none;
  color: var(--color-fg);
  font-size: 1.25rem;
  font-weight: 500;
}

/* ── Hidden helpers ── */
@media (max-width: 1023px) {
  .hidden-mobile { display: none !important; }
}

@media (min-width: 1024px) {
  .hidden-desktop { display: none !important; }
}

/* ── Theme Toggle ── */
.theme-icon {
  width: 20px;
  height: 20px;
  transition: all 0.3s;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dark .sun-icon {
  transform: rotate(-90deg) scale(0);
}

.dark .moon-icon {
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.moon-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg) scale(0);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5rem 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg) 50%, rgba(209, 43, 43, 0.05) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(128, 128, 128, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(128, 128, 128, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  background: var(--color-bg);
}

/* ── Typography ── */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) { h1 { font-size: 3.5rem; } }
@media (min-width: 1024px) { h1 { font-size: 4.5rem; } }

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) { h2 { font-size: 3rem; } }

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.text-primary { color: var(--color-primary); }
.text-muted { color: var(--color-muted); }
.text-center { text-align: center; }

.lead {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

@media (min-width: 1024px) { .lead { font-size: 1.25rem; } }

/* ── Hero Actions ── */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* ── Tech Partners ── */
.tech-partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.tech-partners svg {
  width: 24px;
  height: 24px;
}

/* ── Sections ── */
section {
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  section { padding: 8rem 0; }
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 42rem;
  margin: 0 auto;
}

/* ── Grid ── */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Card ── */
.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card.highlight {
  border-color: var(--color-primary);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-icon {
  width: 40px;
  height: 40px;
  padding: 0.5rem;
  background: rgba(209, 43, 43, 0.1);
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  color: var(--color-primary);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--color-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.9rem;
}

.card-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.card-link:hover {
  text-decoration: underline;
}

.badge-highlight {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

/* ── Background Card ── */
.bg-card {
  background: var(--color-card-bg);
}

/* ── Tags ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background: rgba(209, 43, 43, 0.1);
  color: var(--color-primary);
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--color-card-bg), var(--color-bg));
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 4rem 2rem;
  text-align: center;
  margin: 0 1rem;
}

.cta-section.cta-red {
  background: var(--color-primary);
  border: none;
  color: white;
}

.cta-section.cta-red h2,
.cta-section.cta-red .lead {
  color: white;
}

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: -1.5rem;
  top: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot svg {
  width: 10px;
  height: 10px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-year {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  background: rgba(209, 43, 43, 0.1);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ── Product Card (ecosystem) ── */
.product-card-header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  padding: 1.5rem;
  border-radius: 0.5rem 0.5rem 0 0;
  margin: -1.5rem -1.5rem 1.5rem;
}

.product-card-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.product-badge {
  font-size: 0.75rem;
  opacity: 0.85;
}

.feature-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.feature-list li {
  font-size: 0.875rem;
  color: var(--color-muted);
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ── Competenze ── */
.competenza-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}

.competenza-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── Services Page ── */
.service-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}

.service-section:last-child {
  border-bottom: none;
}

.service-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-icon {
  width: 56px;
  height: 56px;
  padding: 0.875rem;
  background: rgba(209, 43, 43, 0.1);
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-meta {
  flex: 1;
}

.service-subtitle {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.service-features {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

@media (min-width: 768px) {
  .service-features { grid-template-columns: repeat(2, 1fr); }
}

.service-features li {
  font-size: 0.875rem;
  color: var(--color-muted);
  padding-left: 1.25rem;
  position: relative;
}

.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  color: var(--color-muted);
}

/* ── Case Study Card ── */
.case-study-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.2s;
}

.case-study-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.case-study-sector {
  background: var(--color-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
}

.case-study-body {
  padding: 1.5rem;
}

.case-study-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.case-study-metrics {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--color-bg);
  border-radius: 0.375rem;
}

.metric {
  text-align: center;
  flex: 1;
  min-width: 80px;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--color-muted);
  display: block;
}

/* ── Forms ── */
.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: repeat(2, 1fr); }
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-input,
.form-textarea,
select.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  background: var(--color-bg);
  color: var(--color-fg);
  transition: border-color 0.2s;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

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

.form-error {
  color: var(--color-primary);
  font-size: 0.8rem;
  margin-top: 0.375rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.form-checkbox input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
}

.form-checkbox a {
  color: var(--color-primary);
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #15803d;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.dark .alert-success {
  color: #86efac;
  background: rgba(34, 197, 94, 0.08);
}

/* ── Contact Info ── */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-info-icon {
  width: 36px;
  height: 36px;
  background: rgba(209, 43, 43, 0.1);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-card-bg);
  margin-top: 5rem;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-desc {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.footer-partner-tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  color: var(--color-muted);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.875rem;
}

/* ── Cookie Banner ── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-card-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: none;
}

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

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.cookie-banner-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cookie-banner-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner-actions .btn {
  min-height: 2.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ── Cookie Customize Dialog ── */
#cookie-customize-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#cookie-customize-dialog.show {
  opacity: 1;
}

.cookie-dialog-content {
  background: var(--color-card-bg);
  border-radius: 0.75rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

#cookie-customize-dialog.show .cookie-dialog-content {
  transform: scale(1);
}

.cookie-dialog-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.cookie-dialog-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.cookie-dialog-header p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}

.cookie-dialog-body {
  padding: 1.5rem;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cookie-option:last-child {
  border-bottom: none;
}

.cookie-option-info { flex: 1; }

.cookie-option-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.cookie-option-info p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}

.cookie-option-toggle {
  flex-shrink: 0;
  padding-top: 0.125rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

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

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

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--color-primary);
}

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

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

.cookie-dialog-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

@media (max-width: 767px) {
  .cookie-banner-content { padding: 1rem; }
  .cookie-banner-header { flex-direction: column; }
  .cookie-banner-actions { flex-direction: column; }
  .cookie-banner-actions .btn { width: 100%; }
}

/* ── Utilities ── */
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }

.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
