:root {
  /* Colori */
  --color-primary: #6C63FF;
  --color-secondary: #FFD700;
  --color-accent: #ff6f61; /* button_color_hex */
  --color-text: #3A3042;
  --color-text-light: #ffffff;
  --color-bg: #F0F8FF;
  --color-footer-bg: #3A3042;

  /* Colori Sezioni */
  --section-bg-1: #FFFFFF;
  --section-bg-2: #FFFACD;
  --section-bg-3: #E6E6FA;
  --section-bg-4: #FFF0F5;
  --section-bg-5: #CCE5FF;

  /* Tipografia */
  --font-primary: 'Bungee', cursive;
  --font-secondary: 'Space Mono', monospace;
  --font-size-base: 18px;
  --line-height-base: 1.6;

  /* Spaziatura */
  --spacing-unit: 8px;
  --spacing-xs: calc(var(--spacing-unit) * 1);   /* 8px */
  --spacing-sm: calc(var(--spacing-unit) * 2);   /* 16px */
  --spacing-md: calc(var(--spacing-unit) * 4);   /* 32px */
  --spacing-lg: calc(var(--spacing-unit) * 8);   /* 64px */
  --spacing-xl: calc(var(--spacing-unit) * 12);  /* 96px */

  /* Effetti Visivi */
  --border-radius: 12px; /* Base per brutalism soft */
  --border-radius-btn: 20px 5px 20px 5px; /* Forma bottoni giocosa */
  --shadow-neon: 0 0 5px var(--color-secondary), 0 0 10px var(--color-secondary), 0 0 15px var(--color-secondary);
  --shadow-brutal: 8px 8px 0px var(--color-primary);
  --shadow-brutal-hover: 4px 4px 0px var(--color-primary);
  --transition-speed: 0.3s;
  --transition-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Space+Mono:wght@400;700&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.03em;
  text-shadow: 2px 2px 0px var(--color-secondary);
}

h1 {
  font-size: calc(var(--font-size-base) * 3.5); /* ~63px */
  letter-spacing: -0.05em;
  text-shadow: 4px 4px 0px var(--color-secondary);
}

h2 {
  font-size: calc(var(--font-size-base) * 2.5); /* ~45px */
}

h3 {
  font-size: calc(var(--font-size-base) * 1.8); /* ~32px */
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-speed) var(--transition-easing);
}

a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

ul, ol {
  margin-left: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

li {
  margin-bottom: var(--spacing-xs);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Bottoni giocosi e neon */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--color-accent);
  color: var(--color-text-light);
  font-family: var(--font-primary);
  font-size: calc(var(--font-size-base) * 1.1);
  border: none;
  border-radius: var(--border-radius-btn);
  cursor: pointer;
  box-shadow: var(--shadow-brutal);
  transition: all var(--transition-speed) var(--transition-easing);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--color-accent) 0%, #FF8C00 100%);
  z-index: -1;
  transition: transform var(--transition-speed) var(--transition-easing);
  transform: translateX(-100%);
}

.btn:hover::before {
  transform: translateX(0);
}

.btn:hover {
  color: var(--color-text-light);
  box-shadow: var(--shadow-brutal-hover), var(--shadow-neon);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: inset 2px 2px 0px var(--color-primary);
}

/* Card con brutalism soft */
.card {
  background-color: var(--section-bg-1);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-brutal);
  border: 2px solid var(--color-primary);
  transition: transform var(--transition-speed) var(--transition-easing), box-shadow var(--transition-speed) var(--transition-easing);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-brutal-hover), 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Input e Form */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius);
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  box-shadow: 4px 4px 0px var(--color-secondary);
  transition: all var(--transition-speed) var(--transition-easing);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 2px 2px 0px var(--color-accent), var(--shadow-neon);
}

/* Navigazione */
nav {
  background-color: var(--color-primary);
  padding: var(--spacing-sm) var(--spacing-md);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px solid var(--color-secondary);
}

nav .nav-links {
  display: flex;
  gap: var(--spacing-md);
}

nav .nav-links a {
  color: var(--color-text-light);
  font-family: var(--font-primary);
  font-size: calc(var(--font-size-base) * 1.1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  transition: background-color var(--transition-speed) var(--transition-easing), color var(--transition-speed) var(--transition-easing), box-shadow var(--transition-speed) var(--transition-easing);
}

nav .nav-links a:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  text-decoration: none;
  box-shadow: var(--shadow-neon);
}

/* Footer */
footer {
  background-color: var(--color-footer-bg);
  color: var(--color-text-light);
  padding: var(--spacing-lg) 0;
  text-align: center;
  font-size: calc(var(--font-size-base) * 0.9);
  border-top: 4px solid var(--color-secondary);
}

footer a {
  color: var(--color-secondary);
}

footer a:hover {
  color: var(--color-accent);
}

/* Sezioni con sfondi e colori testo ben definiti */
.section-bg-1 {
  background-color: var(--section-bg-1);
  color: #000000 !important;
  padding: var(--spacing-xl) 0;
}
.section-bg-1 h1, .section-bg-1 h2, .section-bg-1 h3, .section-bg-1 h4, .section-bg-1 h5, .section-bg-1 h6, .section-bg-1 p, .section-bg-1 span, .section-bg-1 div, .section-bg-1 a {
  color: #000000 !important;
}

.section-bg-2 {
  background-color: var(--section-bg-2);
  color: #000000 !important;
  padding: var(--spacing-xl) 0;
}
.section-bg-2 h1, .section-bg-2 h2, .section-bg-2 h3, .section-bg-2 h4, .section-bg-2 h5, .section-bg-2 h6, .section-bg-2 p, .section-bg-2 span, .section-bg-2 div, .section-bg-2 a {
  color: #000000 !important;
}

.section-bg-3 {
  background-color: var(--section-bg-3);
  color: #000000 !important;
  padding: var(--spacing-xl) 0;
}
.section-bg-3 h1, .section-bg-3 h2, .section-bg-3 h3, .section-bg-3 h4, .section-bg-3 h5, .section-bg-3 h6, .section-bg-3 p, .section-bg-3 span, .section-bg-3 div, .section-bg-3 a {
  color: #000000 !important;
}

.section-bg-4 {
  background-color: var(--section-bg-4);
  color: #000000 !important;
  padding: var(--spacing-xl) 0;
}
.section-bg-4 h1, .section-bg-4 h2, .section-bg-4 h3, .section-bg-4 h4, .section-bg-4 h5, .section-bg-4 h6, .section-bg-4 p, .section-bg-4 span, .section-bg-4 div, .section-bg-4 a {
  color: #000000 !important;
}

.section-bg-5 {
  background-color: var(--section-bg-5);
  color: #000000 !important;
  padding: var(--spacing-xl) 0;
}
.section-bg-5 h1, .section-bg-5 h2, .section-bg-5 h3, .section-bg-5 h4, .section-bg-5 h5, .section-bg-5 h6, .section-bg-5 p, .section-bg-5 span, .section-bg-5 div, .section-bg-5 a {
  color: #000000 !important;
}

/* Alpine.js specific styles */
[x-cloak] {
  display: none !important;
}

/* Utility per testo scuro su fondo chiaro */
.text-dark {
  color: var(--color-text) !important;
}

/* Utility per testo chiaro su fondo scuro */
.text-light {
  color: var(--color-text-light) !important;
}

/* Media Queries per Responsiveness */
@media (max-width: 768px) {
  h1 {
    font-size: calc(var(--font-size-base) * 2.5);
  }

  h2 {
    font-size: calc(var(--font-size-base) * 2);
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav .nav-links {
    flex-direction: column;
    width: 100%;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
  }

  nav .nav-links a {
    width: 100%;
    text-align: center;
    padding: var(--spacing-xs) 0;
  }
  
  /* Alpine.js per la navigazione mobile */
  nav .nav-links.hidden {
    display: none !important;
  }
}

@media (min-width: 768px) {
  nav .nav-links.hidden {
    display: flex !important;
  }
}

/* Animazioni per elementi in ingresso (potrebbe essere usato con Alpine.js o JS) */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Animazione per hover sulle immagini */
img {
  transition: transform var(--transition-speed) var(--transition-easing), filter var(--transition-speed) var(--transition-easing);
  border-radius: var(--border-radius);
}

img:hover {
  transform: scale(1.03) rotate(1deg);
  filter: saturate(1.2);
}

/* Stili per icone o piccoli elementi interattivi */
.icon-neon {
  color: var(--color-primary);
  filter: drop-shadow(0 0 3px var(--color-secondary));
  transition: filter var(--transition-speed) var(--transition-easing);
}

.icon-neon:hover {
  filter: drop-shadow(0 0 5px var(--color-secondary)) drop-shadow(0 0 10px var(--color-accent));
}

/* Contenitori con forme organiche (esempio) */
.organic-container {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background-color: var(--section-bg-3);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-brutal);
  border: 2px solid var(--color-primary);
  margin-bottom: var(--spacing-xl);
}

.brutal-border {
  border: 4px solid var(--color-primary);
  padding: var(--spacing-md);
  box-shadow: 6px 6px 0px var(--color-secondary);
}

/* Sezioni specifiche per il brutalism */
.section-headline {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-md);
  background-color: var(--color-secondary);
  color: var(--color-primary) !important;
  border: 4px solid var(--color-primary);
  box-shadow: 10px 10px 0px var(--color-accent);
  transform: rotate(-2deg);
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}
.section-headline h2 {
  color: var(--color-primary) !important;
  text-shadow: none;
}
.section-headline p {
  color: var(--color-primary) !important;
}

/* Stile per un div che simula un "graffio" o "taglio" */
.cut-graphic {
  position: relative;
  width: 100%;
  height: 50px;
  background-color: var(--color-accent);
  margin: var(--spacing-xl) 0;
  transform: skewY(-2deg);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.cut-graphic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    var(--color-secondary),
    var(--color-secondary) 10px,
    var(--color-primary) 10px,
    var(--color-primary) 20px
  );
  opacity: 0.2;
}

/* Stili per elementi di elenco con un tocco giocoso */
ul.list-funky li {
  list-style: none;
  padding-left: var(--spacing-md);
  position: relative;
  margin-bottom: var(--spacing-sm);
}
ul.list-funky li::before {
  content: '⚡'; /* Un piccolo fulmine come bullet point */
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-size: calc(var(--font-size-base) * 1.2);
  line-height: 1;
}

/* Stili per tabelle */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--spacing-lg);
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-brutal-hover);
}

th, td {
  padding: var(--spacing-sm);
  border: 1px solid var(--color-primary);
  text-align: left;
}

th {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 0px var(--color-secondary);
}

tr:nth-child(even) {
  background-color: var(--section-bg-2);
}

tr:hover {
  background-color: var(--section-bg-3);
  cursor: pointer;
}<ctrl63>


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}