:root {
    /* Colori */
    --primary-color: #B8860B; /* Oro/Ottone */
    --secondary-color: #3A5C4A; /* Verde scuro */
    --background-color: #1A2B3C; /* Blu notte molto scuro */
    --footer-bg-color: #0D1A25; /* Nero quasi assoluto */
    --button-color: #B8860B; /* Oro/Ottone */
    --text-color-light: #E0E0E0;
    --text-color-dark: #1A2B3C;
    --accent-color: #FFD700; /* Oro brillante per accenti */

    /* Sfondi sezione */
    --section-bg-1: #2C3E50; /* Blu grigio */
    --section-bg-2: #3A5C4A; /* Verde scuro */
    --section-bg-3: #1A2B3D; /* Blu notte leggermente più chiaro */
    --section-bg-4: #2B3D4F; /* Blu grigio più chiaro */
    --section-bg-5: #15202B; /* Blu molto scuro */

    /* Tipografia */
    --font-heading: 'Playfair Display', serif; /* Elegante */
    --font-body: 'Lato', sans-serif; /* Pulito e leggibile */
    --font-alt: 'Montserrat', sans-serif; /* Moderno */

    --h1-size: 4.5rem;
    --h2-size: 3.2rem;
    --h3-size: 2.2rem;
    --h4-size: 1.8rem;
    --body-font-size: 1.15rem;
    --line-height-body: 1.8;
    --letter-spacing-heading: 0.08em;

    /* Spaziatura */
    --spacing-unit: 1rem;
    --section-padding-y: 8rem;
    --section-padding-x: 4rem;

    /* Bordi e ombre */
    --border-radius-soft: 8px;
    --border-radius-sharp: 2px;
    --shadow-subtle: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-brutal: 5px 5px 0px rgba(0, 0, 0, 0.8);
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--body-font-size);
    line-height: var(--line-height-body);
    color: var(--text-color-light);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Previene scroll orizzontale non desiderato */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: var(--letter-spacing-heading);
    text-transform: uppercase;
}

h1 { font-size: var(--h1-size); line-height: 1.1; }
h2 { font-size: var(--h2-size); line-height: 1.2; }
h3 { font-size: var(--h3-size); line-height: 1.3; }
h4 { font-size: var(--h4-size); line-height: 1.4; }

p {
    margin-bottom: 1.2rem;
    color: var(--text-color-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    position: relative;
    padding-bottom: 2px; /* Per la sottolineatura animata */
}

a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5); /* Effetto glow sottile */
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease-in-out;
}

a:hover::after {
    width: 100%;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color-light);
}

li {
    margin-bottom: 0.5rem;
}

/* Utilities per Tailwind (se usato) - qui definiamo stili complementari */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-unit);
    padding-right: var(--spacing-unit);
}

/* Custom Components */

/* Buttons - Stile Brutalismo Raffinato con tocco Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-alt);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid var(--button-color);
    background-color: var(--button-color);
    color: var(--background-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    border-radius: var(--border-radius-sharp); /* Angoli vivi */
    box-shadow: var(--shadow-brutal); /* Ombra Brutalista */
    margin-bottom: 1rem;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--text-color-dark);
    border-color: var(--accent-color);
    transform: translate(-3px, -3px); /* Leggero spostamento */
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 215, 0, 0.6); /* Ombra più pronunciata + glow */
}

.btn:active {
    transform: translate(0, 0);
    box-shadow: var(--shadow-brutal);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.6);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
    transform: translate(-3px, -3px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.6), 0 0 20px rgba(184, 134, 11, 0.4);
}

/* Cards - Design Brutalista Raffinato */
.card {
    background-color: var(--section-bg-3);
    border: 1px solid rgba(var(--primary-color), 0.3);
    border-radius: var(--border-radius-sharp);
    padding: 2.5rem;
    box-shadow: var(--shadow-premium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

.card:hover::before {
    transform: scaleX(1);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-alt);
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 1rem 1.2rem;
    background-color: var(--section-bg-5);
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius-sharp);
    color: var(--text-color-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(var(--primary-color), 0.3);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Sezioni con sfondi dinamici */
.section-bg-1 { background-color: var(--section-bg-1); padding: var(--section-padding-y) var(--section-padding-x); }
.section-bg-2 { background-color: var(--section-bg-2); padding: var(--section-padding-y) var(--section-padding-x); }
.section-bg-3 { background-color: var(--section-bg-3); padding: var(--section-padding-y) var(--section-padding-x); }
.section-bg-4 { background-color: var(--section-bg-4); padding: var(--section-padding-y) var(--section-padding-x); }
.section-bg-5 { background-color: var(--section-bg-5); padding: var(--section-padding-y) var(--section-padding-x); }

/* Footer */
footer {
    background-color: var(--footer-bg-color);
    color: var(--text-color-light);
    padding: 3rem var(--section-padding-x);
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px solid rgba(var(--primary-color), 0.2);
}

footer a {
    color: var(--primary-color);
}

footer a:hover {
    color: var(--accent-color);
}

/* Animazioni (esempio di fade-in on scroll) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 1024px) {
    :root {
        --h1-size: 3.5rem;
        --h2-size: 2.5rem;
        --h3-size: 2rem;
        --section-padding-y: 6rem;
        --section-padding-x: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --h1-size: 2.8rem;
        --h2-size: 2rem;
        --h3-size: 1.8rem;
        --body-font-size: 1rem;
        --section-padding-y: 5rem;
        --section-padding-x: 1.5rem;
    }

    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    :root {
        --h1-size: 2.2rem;
        --h2-size: 1.8rem;
        --h3-size: 1.5rem;
        --section-padding-y: 4rem;
        --section-padding-x: 1rem;
    }
}

/* Aggiunta di stili per una barra di navigazione fissa (se applicabile) */
.navbar {
    background-color: rgba(var(--background-color), 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem var(--section-padding-x);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(var(--primary-color), 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.navbar-nav a {
    color: var(--text-color-light);
    margin-left: 1.5rem;
    font-family: var(--font-alt);
    font-weight: 500;
    text-transform: uppercase;
}

.navbar-nav a:hover {
    color: var(--accent-color);
}

/* Scrollbar personalizzata per un look premium */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
    border: 2px solid var(--background-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}


/* 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;
    }
}