
:root {
  /* Primitive Color Tokens */
--color-white: rgba(255, 255, 255, 1);
--color-light: rgba(245, 245, 245, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(252, 252, 249, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: black;
  --color-text-secondary: black;
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");


  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* light mode colors */
@media (prefers-color-scheme: light) {
    :root {
        /* RGB versions for opacity control (light Mode) */
        --color-gray-400-rgb: 119, 124, 124;
        --color-teal-300-rgb: 50, 184, 198;
        --color-gray-300-rgb: 167, 169, 169;
        --color-gray-200-rgb: 245, 245, 245;
        /* Background color tokens (light Mode) */
        --color-bg-1: rgba(29, 78, 216, 0.15); /* light blue */
        --color-bg-2: rgba(180, 83, 9, 0.15); /* light yellow */
        --color-bg-3: rgba(21, 128, 61, 0.15); /* light green */
        --color-bg-4: rgba(185, 28, 28, 0.15); /* light red */
        --color-bg-5: rgba(107, 33, 168, 0.15); /* light purple */
        --color-bg-6: rgba(194, 65, 12, 0.15); /* light orange */
        --color-bg-7: rgba(190, 24, 93, 0.15); /* light pink */
        --color-bg-8: rgba(8, 145, 178, 0.15); /* light cyan */
        /* Semantic Color Tokens (light Mode) */
        --color-background: var(--color-charcoal-700);
        --color-surface: var(--color-charcoal-800);
        --color-text: var(--color-gray-200);
        --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
        --color-primary: var(--color-teal-300);
        --color-primary-hover: var(--color-teal-400);
        --color-primary-active: var(--color-teal-800);
        --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
        --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
        --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
        --color-border: rgba(var(--color-gray-400-rgb), 0.3);
        --color-error: var(--color-red-400);
        --color-success: var(--color-teal-300);
        --color-warning: var(--color-orange-400);
        --color-info: var(--color-gray-300);
        --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
        --color-btn-primary-text: var(--color-slate-900);
        --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
        --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
        --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
        --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
        --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
        --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);
        /* Common style patterns - updated for light mode */
        --focus-ring: 0 0 0 3px var(--color-focus-ring);
        --focus-outline: 2px solid var(--color-primary);
        --status-bg-opacity: 0.15;
        --status-border-opacity: 0.25;
        --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        /* RGB versions for light mode */
        --color-success-rgb: var(--color-teal-300-rgb);
        --color-error-rgb: var(--color-red-400-rgb);
        --color-warning-rgb: var(--color-orange-400-rgb);
        --color-info-rgb: var(--color-gray-300-rgb);
    }
}

/* Data attribute for manual theme switching */
[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - light Mode */
  --color-bg-1: rgba(29, 78, 216, 0.15); /* light blue */
  --color-bg-2: rgba(180, 83, 9, 0.15); /* light yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15); /* light green */
  --color-bg-4: rgba(185, 28, 28, 0.15); /* light red */
  --color-bg-5: rgba(107, 33, 168, 0.15); /* light purple */
  --color-bg-6: rgba(194, 65, 12, 0.15); /* light orange */
  --color-bg-7: rgba(190, 24, 93, 0.15); /* light pink */
  --color-bg-8: rgba(8, 145, 178, 0.15); /* light cyan */

  /* Semantic Color Tokens (light Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for light mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

 }

[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;

}

body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-35px);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

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

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}



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

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

<a  class="button-style" title="btnMagicHair">Scopri di più</a>

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

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

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

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

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a light mode specific caret */
@media (prefers-color-scheme: light) {
  select.form-control {
    background-image: var(--select-caret-light);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

/* Accessibility */
.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;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}



@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}
/* Custom styles for Magic Hair Studio */

/* Additional color variables for salon theme */
:root {
  --color-rose-100: rgba(255, 241, 242, 1);
  --color-rose-200: rgba(254, 205, 211, 1);
  --color-rose-300: rgba(253, 164, 175, 1);
  --color-rose-400: rgba(251, 113, 133, 1);
  --color-rose-500: rgba(244, 63, 94, 1);
  --color-gold-100: rgba(255, 251, 235, 1);
  --color-gold-200: rgba(254, 240, 138, 1);
  --color-gold-300: rgba(253, 224, 71, 1);
  --color-gold-400: rgba(251, 191, 36, 1);
  --color-gold-500: rgba(245, 158, 11, 1);
  
  /* Custom gradients */
  --gradient-rose: linear-gradient(135deg, var(--color-rose-200), var(--color-rose-300));
  --gradient-gold: linear-gradient(135deg, var(--color-gold-200), var(--color-gold-300));
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background:rgb(255, 255, 255);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: all var(--duration-normal) var(--ease-standard);
}

.navbar.scrolled {
  background: white;
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: black var(--space-16);
}

.nav-brand h2 {
  background: black;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  font-size: var(--font-size-x0.1);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-32);
}

.nav-link {
  color: black;
  font-weight: var(--font-weight-medium);
  transition: color var(--duration-fast) var(--ease-standard);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: black;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-rose);
  transition: width var(--duration-normal) var(--ease-standard);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-text);
  transition: all var(--duration-normal) var(--ease-standard);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-bg-1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--color-text-secondary);
}

.video-placeholder i {
  font-size: 4rem;
  margin-bottom: var(--space-16);
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  z-index: -1;
  pointer-events: none; /* <<< aggiungi questo */
}
/* Mobile Top Menu */
.mobile-top-menu {
    display: none;
    position: fixed;
    top: 60px; /* sotto la navbar */
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 8px;
    z-index: 9999;
}

.mobile-top-menu select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}

/* Mostra solo su mobile */
@media (max-width: 768px) {
    .mobile-top-menu {
        display: fix;
    }
}




.hero-content {
  text-align: center;
  color: white;
  z-index: 1;
  max-width: 800px;
  padding: 0 var(--space-16);
}

.hero-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-24);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s var(--ease-standard);
}

.hero-titlevideo {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-24);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s var(--ease-standard);
}


.hero-subtitle {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-32);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s var(--ease-standard) 0.2s both;
}

.hero .btn {
  animation: fadeInUp 1s var(--ease-standard) 0.4s both;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-32);
  background: pink;
  -webkit-background-clip: text;
  -webkit-text-fill-color: pink;
  background-clip: text;
  position: relative;
}

.titolo {
  text-align: center;
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-32);
  background: cyan;
  -webkit-background-clip: text;
  -webkit-text-fill-color: cyan;
  background-clip: text;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

/* Services Preview */
.services-preview {
  background: var(--color-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-32);
  margin-bottom: var(--space-32);
}

.service-card {
  background: white;
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);section-title
  transition: all var(--duration-normal) var(--ease-standard);
  border: 1px solid var(--color-card-border);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
/* Stile di default (desktop) */
.navbar {
    background: white;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .navbar {
        background: white;
        color: white;
        height: 60px;
    }
}

    /* Rendi il menu verticale invece che orizzontale */
    .nav-menu {
        display: none; /* nascosto di default */
        flex-direction: column;
        background: #333;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 15px;
        border-bottom: 1px solid #444;
    }

    /* Hamburger visibile solo da mobile */
    .nav-toggle {
        display: flex;
        cursor: pointer;
    }
  


/* --- DESKTOP --- */
@media (min-width: 769px) {
  .nav-menu {
    display: flex;
    flex-direction: row;
    background: none;
    position: static;
    gap: 32px; /* o quello che preferisci */
    width: auto;
    box-shadow: none;
    padding: 0;
  }
  .nav-menu li {
    border-bottom: none;
    padding: 0;
  }
  .nav-toggle {
    display: none;
  }
}


.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-20);
  background: var(--gradient-rose);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.service-card h3 {
  color: black;
  margin-bottom: var(--space-16);
  font-size: var(--font-size-xl);
}

.service-card p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Why Choose Us */
.why-choose-us {
  background: var(--color-bg-2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-32);
}

.feature-item {
  text-align: center;
  padding: var(--space-24);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-16);
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.feature-item h3 {
  color: black;
  margin-bottom: var(--space-12);
  font-size: var(--font-size-lg);
}

.feature-item h9 {
  color: black;
  margin-bottom: var(--space-12);
  font-size: var(--font-size-lg);
}

/* Gallery Preview */
.gallery-preview {
  background: var(--color-surface);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-16);
  margin-bottom: var(--space-32);
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-standard);
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-foto {
    display: inline-block;
    margin: 10px;
    padding: 15px;
    width: 300px;
    height: 120px;       /* più basso */
    background: #f7f7f7;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.text-box h3 {
    margin: 5px 0;
    font-size: 18px;     /* pensato per max ~10 caratteri */
    font-weight: 600;
    color: #222;
}

.text-box p {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #e63946;      /* colore prezzo */
}

.info-servizi {
    max-width: 540px;
    margin: 36px auto 0 auto;
    padding: 20px 28px;
    background: linear-gradient(90deg, #f7f7f7 80%, #f9e7ea 100%);
    border-left: 6px solid #e63946;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(68,12,26,0.06);
    font-size: 22px;
    font-weight: 500;
    position: relative;
}

.info-servizi h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #232323;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.info-servizi .call-span {
    color: #e63946;
    background: rgba(230,57,70,0.07);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(230,57,70,0.08);
    transition: background 0.2s;
}

.info-servizi .call-span:hover {
    background: #e63946;
    color: #fff;
}

.call-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 22px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(95deg, #e63946 60%, #e47887 100%);
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(230,57,70,0.11);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
}
.call-btn:hover {
    background: #d11134;
    box-shadow: 0 2px 24px rgba(230,57,70,0.13);
}

.servizi-container {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    align-items: flex-start;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
}

.image-placeholder.large {
  aspect-ratio: 4/3;
}

.image-placeholder.round {
  border-radius: 50%;
  aspect-ratio: 1;
}

/* Testimonials */
.testimonials {
  background: whitesmoke;
}




.testimonials-carousel {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  min-height: 200px;
}

.testimonial-item {
  display: none;
  text-align: center;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-standard);
}

.testimonial-item.active {
  display: block;
  opacity: 1;
}

.testimonial-avatar {
  margin: 0 auto var(--space-16);
}

.avatar-placeholder {
  width: 80px;
  height: 80px;
  background: var(--color-bg-5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
  margin: 0 auto;
  border: 2px dashed var(--color-border);
}

.testimonial-content p {
  font-size: var(--font-size-lg);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-16);
  line-height: 1.6;
}

.testimonial-rating {
  color: var(--color-gold-400);
  margin-bottom: var(--space-12);
}

.testimonial-content h4 {
  color: var(--color-text);
  font-size: var(--font-size-md);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-24);
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(var(--color-text-secondary), 0.3);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard);
}

.indicator.active {
  background: var(--color-rose-500);
}

/* Call to Action */
.cta {
  background: var(--gallery-preview);
  color: black;
  text-align: center;
}

.cta-content h2 {
  color: black;
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-16);
}

.cta-content p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-24);
  opacity: 0.9;
}

/* Detailed Services Section */
.servizi-section {
  background:whitesmoke;
}

.services-detailed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-24);
}

.service-detailed-card {
  background: whitesmoke;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-standard);
}

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

.service-image {
  height: 200px;
}

.service-info {
  padding: var(--space-20);
}

.service-info h3 {
  color: var(--color-text);
  margin-bottom: var(--space-8);
  font-size: var(--font-size-lg);
}

.service-info p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-12);
  line-height: 1.6;
}

.service-price {
  font-weight: var(--font-weight-bold);
  color: var(--color-rose-500);
  font-size: var(--font-size-lg);
}

/* Gallery Full Section */
.gallery-section {
  background: var(--color-surface);
}

.gallery-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-16);
}

/* Chi Siamo Section */
.chi-siamo-section {
  background: whitesmoke;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  align-items: center;
  margin-bottom: var(--space-32);
}

.about-text h3 {
  color: var(--color-text);
  margin-bottom: var(--space-16);
  font-size: var(--font-size-2xl);
}

.about-text p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-16);
}

.team-title {
  text-align: center;
  font-size: var(--font-size-2xl);
  color: var(--color-text);
  margin: var(--space-32) 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-24);
}

.team-member {
  background: black;
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-standard);
}

.team-member:hover {
  transform: translateY(-4px);
}

.team-photo {
  margin-bottom: var(--space-16);
}

.team-member h4 {
  color: var(--color-text);
  margin-bottom: var(--space-8);
  font-size: var(--font-size-lg);
}

.team-role {
  color: var(--color-rose-500);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-4);
}

.team-experience {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

/* Contact Section */
.contatti-section {
  background: var(--color-surface);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  margin-bottom: var(--space-32);
}

.contact-info h3 {
  color: var(--color-text);
  margin-bottom: var(--space-24);
  font-size: var(--font-size-xl);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-16);
  margin-bottom: var(--space-20);
}

.contact-item i {
  color: var(--color-rose-500);
  font-size: 1.2rem;
  margin-top: var(--space-4);
}

.contact-item h4 {
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.contact-item p {
  color: var(--color-text-secondary);
  margin: 0;
}

.contact-item a {
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) var(--ease-standard);
}

.contact-item a:hover {
  color: var(--color-rose-500);
}

.opening-hours {
  margin: var(--space-16) 0;
}

.opening-hours h4 {
  color: var(--color-text);
  margin-bottom: var(--space-12);
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--color-border);
}

.social-links h4 {
  color: var(--color-text);
  margin: var(--space-24) 0 var(--space-12) 0;
}

.social-icons {
  display: flex;
  gap: var(--space-12);
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: var(--gradient-rose);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-fast) var(--ease-standard);
}

.social-icons a:hover {
  transform: scale(1.1);
}

.contact-form-container h3 {
  color: var(--color-text);
  margin-bottom: var(--space-24);
  font-size: var(--font-size-xl);
}

.map-container {
  margin-top: var(--space-32);
}

.map-container h3 {
  color: var(--color-text);
  margin-bottom: var(--space-16);
  font-size: var(--font-size-xl);
}

.map-placeholder {
  background: var(--color-bg-7);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 2px dashed var(--color-border);
  color: var(--color-text-secondary);
}

/* Footer */
.footer {
  background: black;
  color: var(--color-surface);
  padding: var(--space-32) 0 var(--space-16) 0;
}

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

.footer-section h3,
.footer-section h4 {
  color: white;
  margin-bottom: var(--space-16);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.footer .social-icons a {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.footer .social-icons a:hover {
  background: var(--color-rose-500);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-16);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* AOS Animation Styles */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-right"] {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s ease;
}

[data-aos="fade-right"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

[data-aos="fade-left"] {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s ease;
}

[data-aos="fade-left"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

[data-aos="zoom-in"] {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s ease;
}

[data-aos="zoom-in"].aos-animate {
  opacity: 1;
  transform: scale(1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: var(--space-16);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    transition: transform var(--duration-normal) var(--ease-standard);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-menu li {
    padding: var(--space-8) 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }

  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .services-detailed-grid,
  .gallery-full-grid {
    grid-template-columns: 1fr;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-16);
  }

  section {
    padding: 60px 0;
  }

  .container {
    padding-left: var(--space-12);
    padding-right: var(--space-12);
  }
}

@media (max-width: 480px) {
  .gallery-grid,
  .gallery-full-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
.button-container {
  text-align: right; /* sposta a destra */
}


  .team-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

}




img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
}


img {
  object-fit: contain;
  object-position: center;
}

img[data-style="special"] {
  object-fit: cover;
  object-position: center;
  height: 300px;
}

.magic-button {
  background-color: transparent; /* o un colore, se vuoi */
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ✅ Immagine responsive dentro il bottone */
.magic-button .button-img {
  height: 40px !important;     /* come prima */
  width: auto !important;          /* mantiene le proporzioni */
  vertical-align: middle !important;
  object-fit: contain !important;  /* evita lo stretch */
  transition: transform 0.2s ease !important; /* effetto al passaggio del mouse */
}

/* opzionale: piccolo effetto hover */
.magic-button:hover .button-img {
  transform: scale(1.05) !important;
}

/* Hero — override fondo file */
.hero {
  position: relative !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

/* Corregge/forza il layer immagine di sfondo */
.hero-video {
  position: fixed !important;      /* resta come background sotto tutta la pagina */
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: -2 !important;
}

/* "Metodo vecchio": <img> + object-fit: cover */
.hero-video .image-bg {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;    /* copre senza deformare */
  object-position: center !important;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Overlay per contrasto testo (usa var se definita, altrimenti fallback) */
.hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: var(--gradient-hero, linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.55))) !important;
  z-index: -1 !important;          /* sopra immagine, sotto contenuti */
  pointer-events: none;
}

/* Contenuti sopra */
.hero-content {
  position: relative !important;
  z-index: 1 !important;
  text-align: center !important;
  padding: 0 var(--space-16, 16px);
}

/* Mobile: altezza sicura e tipografia adattiva */
@media (max-width: 768px) {
  .hero { min-height: 100svh !important; }
  .hero-titlevideo { font-size: clamp(2rem, 6vw, 3rem) !important; }
  .hero-subtitle { font-size: clamp(1rem, 3.5vw, 1.25rem) !important; }
}

.responsive-map {
  position: relative;
  width: 100%;          /* prende tutta la larghezza possibile */
  height: 0;            /* altezza azzerata per usare il padding-bottom */
  padding-bottom: 75%;  /* rapporto altezza/larghezza 4:3 (0.75) */
  overflow: hidden;
}

.responsive-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

@media (max-width: 768px) {
  .footer .social-icons {
    justify-content: center;
    align-items: center;
    width: 100%;
  }
}