:root {
    --color-primary: #1A2B3C;
    --color-secondary: #0F52BA;
    --color-background: #0D1117;
    --color-footer-bg: #0A0D11;
    --color-button: #FFD700;
    --color-accent-gold: var(--color-button);
    --color-accent-turquoise: #0F52BA; /* Using secondary for turquoise accent */
    --color-text-light: #E0E0E0;
    --color-text-dark: #A0A0A0;
    --color-border-subtle: rgba(255, 255, 255, 0.1);

    --font-family-primary: 'Exo 2', sans-serif;
    --font-family-secondary: 'Roboto', sans-serif;

    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;

    --border-radius-sm: 0.3rem;
    --border-radius-md: 0.6rem;
    --border-radius-lg: 1rem;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 0, 0, 0.3);
    --shadow-neon-turquoise: 0 0 8px var(--color-accent-turquoise), 0 0 15px var(--color-accent-turquoise);
    --shadow-neon-gold: 0 0 8px var(--color-accent-gold), 0 0 15px var(--color-accent-gold);

    --glass-background: rgba(26, 43, 60, 0.3); /* primary_color_hex with transparency */
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-aurora: linear-gradient(135deg, rgba(15, 82, 186, 0.85), rgba(11, 18, 32, 0.9) 45%, rgba(255, 215, 0, 0.4));
    --gradient-midnight: radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.12), transparent 45%), radial-gradient(circle at 80% 0%, rgba(15, 82, 186, 0.15), transparent 40%), #0D1117;
    --glow-amber: 0 0 20px rgba(255, 215, 0, 0.35);
    --glow-cyan: 0 0 25px rgba(15, 82, 186, 0.35);
    --surface-glass: rgba(13, 17, 23, 0.65);
    --surface-panel: rgba(15, 19, 27, 0.85);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-secondary);
    line-height: 1.6;
    color: var(--color-text-light);
    background-color: var(--color-background);
    background-image: var(--gradient-midnight);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(15, 82, 186, 0.25), transparent 45%), radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.18), transparent 40%);
    opacity: 0.7;
    z-index: -2;
    animation: auroraPulse 22s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 2px, transparent 2px, transparent 6px);
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-primary);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-4);
    letter-spacing: 0.05em;
    font-weight: 700;
}

h1 { font-size: 3.5rem; line-height: 1.1; color: var(--color-accent-gold); text-shadow: var(--shadow-neon-gold); }
h2 { font-size: 2.5rem; line-height: 1.2; color: var(--color-accent-turquoise); text-shadow: var(--shadow-neon-turquoise); }
h3 { font-size: 1.8rem; line-height: 1.3; }
h4 { font-size: 1.4rem; line-height: 1.4; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-4);
    color: var(--color-text-dark);
}

a {
    color: var(--color-accent-turquoise);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--color-accent-gold);
    text-shadow: var(--shadow-neon-gold);
}

ul, ol {
    margin-left: var(--spacing-8);
    margin-bottom: var(--spacing-4);
}

li {
    margin-bottom: var(--spacing-2);
}

/* Layout & Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

section {
    padding: var(--spacing-16) 0;
    position: relative;
    overflow: hidden;
}

.section-bg-1,
.section-bg-2,
.section-bg-3 {
    position: relative;
    isolation: isolate;
}

.section-bg-1::before,
.section-bg-2::before,
.section-bg-3::before {
    content: '';
    position: absolute;
    inset: 15%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1), transparent 65%);
    filter: blur(60px);
    opacity: 0.7;
    z-index: 0;
    animation: floatCard 18s ease-in-out infinite;
}

.section-bg-2::before {
    background: radial-gradient(circle, rgba(15, 82, 186, 0.15), transparent 65%);
}

.section-bg-3::before {
    background: radial-gradient(circle, rgba(0, 255, 255, 0.12), transparent 65%);
}

.section-glow {
    position: absolute;
    inset: 0;
    background: var(--gradient-aurora);
    opacity: 0.35;
    filter: blur(60px);
    z-index: 0;
}

section:nth-of-type(even) {
    background-color: #15191F; /* section_bg_colors[0] */
}

section:nth-of-type(odd) {
    background-color: #1E232A; /* section_bg_colors[1] */
}

/* Header */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--glass-background);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--spacing-4) 0;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: center;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-8);
}

.header__logo {
    flex-grow: 1; /* Allows logo to take available space for centering */
    text-align: center;
    font-family: var(--font-family-primary);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent-gold);
    text-shadow: var(--shadow-neon-gold);
    transition: all 0.3s ease;
}

.header__logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px var(--color-accent-gold), 0 0 20px var(--color-accent-gold);
}

.header__nav {
    display: flex;
    gap: var(--spacing-8);
}

.header__nav a {
    font-family: var(--font-family-primary);
    font-weight: 600;
    color: var(--color-text-light);
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--border-radius-sm);
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, text-shadow 0.3s ease, background-color 0.3s ease;
}

.header__nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-turquoise), transparent);
    transition: all 0.3s ease-out;
    transform: translateX(-50%);
}

.header__nav a:hover {
    color: var(--color-accent-turquoise);
    text-shadow: var(--shadow-neon-turquoise);
}

.header__nav a:hover::before {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3) var(--spacing-6);
    border: none;
    border-radius: var(--border-radius-md); /* Smussati */
    font-family: var(--font-family-primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--color-accent-gold) 0%, #FFEA9F 100%);
    color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    transition: transform 0.5s ease-out;
    transform: rotate(45deg);
    opacity: 0;
}

.btn:hover {
    background: linear-gradient(45deg, var(--color-accent-gold) 0%, #0FF0FF 100%); /* Gold to light turquoise */
    color: var(--color-background);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6), var(--shadow-neon-turquoise);
    transform: translateY(-2px);
}

.btn:hover::before {
    opacity: 1;
    transform: rotate(45deg) scale(1.1);
}

.btn__text-neon { /* Specific style for text with neon trace */
    text-shadow: 0 0 5px var(--color-accent-turquoise), 0 0 10px var(--color-accent-turquoise);
}

/* Cards (News) */
.card {
    background-color: var(--color-primary);
    border: 1px solid var(--color-accent-turquoise);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg); /* Effecto di elevazione (shadow-hover) */
}

.floating-card {
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    transform-style: preserve-3d;
    background: var(--surface-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

.floating-card::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.floating-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: var(--shadow-lg), var(--glow-cyan);
}

.floating-card:hover::after {
    opacity: 1;
}

.interactive-card {
    position: relative;
    overflow: hidden;
}

.interactive-card::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 180deg, rgba(255, 215, 0, 0.18), rgba(15, 82, 186, 0.18), transparent 65%);
    animation: shimmerLoop 14s linear infinite;
    opacity: 0.3;
    z-index: 0;
}

.interactive-card > * {
    position: relative;
    z-index: 1;
}

.card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(45deg, #0D1117, #0F52BA, #FFD700); /* Mesh gradiente turchese e dorato */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-family: var(--font-family-primary);
    font-size: 1.5rem;
}

.card__content {
    padding: var(--spacing-4);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card__title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-2);
    color: var(--color-accent-gold); /* Titolo audace (oro o turchese) */
    text-shadow: var(--shadow-neon-gold);
    line-height: 1.3;
}

.card__description {
    font-size: 0.95rem;
    color: var(--color-text-light); /* Breve descrizione bianca */
    margin-bottom: var(--spacing-4);
    flex-grow: 1;
}

.card__link {
    align-self: flex-start;
    color: var(--color-accent-turquoise);
    font-weight: 600;
}

.card__link:hover {
    color: var(--color-accent-gold);
    text-shadow: var(--shadow-neon-gold);
}

/* Input Fields */
.input-field {
    width: 100%;
    padding: var(--spacing-3) var(--spacing-4);
    margin-bottom: var(--spacing-4);
    background-color: rgba(25, 35, 45, 0.6); /* Sfondo grigio scuro semitrasparente */
    border: 1px solid var(--color-accent-gold); /* Bordi sottili dorati */
    border-radius: var(--border-radius-sm);
    color: var(--color-text-light); /* Testo bianco */
    font-family: var(--font-family-secondary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-field::placeholder {
    color: var(--color-text-dark);
}

.input-field:focus {
    outline: none;
    border-color: var(--color-accent-turquoise); /* Bordo turchese brillante */
    box-shadow: 0 0 0 3px rgba(15, 82, 186, 0.3), var(--shadow-neon-turquoise); /* Leggera ombra esterna */
}

/* Icons */
.icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    color: var(--color-accent-turquoise);
    fill: currentColor;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.icon--neon-turquoise {
    text-shadow: var(--shadow-neon-turquoise);
}

.icon:hover {
    color: var(--color-accent-gold);
    text-shadow: var(--shadow-neon-gold);
}


/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-dark);
    padding: var(--spacing-12) 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--color-border-subtle);
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-8);
}

.footer__section {
    padding: var(--spacing-4);
    border-right: 1px solid var(--color-accent-gold); /* Linee sottili dorate */
}

.footer__section:last-child {
    border-right: none;
}

.footer__section h4 {
    color: var(--color-accent-gold); /* Testo dorato */
    margin-bottom: var(--spacing-6);
    text-shadow: var(--shadow-neon-gold);
}

.footer__section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__section ul li {
    margin-bottom: var(--spacing-2);
}

.footer__section a {
    color: var(--color-text-dark);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer__section a:hover {
    color: var(--color-accent-turquoise);
    text-shadow: var(--shadow-neon-turquoise);
}

.footer__social-icons {
    display: flex;
    gap: var(--spacing-4);
    margin-top: var(--spacing-4);
}

.footer__social-icons .icon {
    font-size: 1.8em;
    color: var(--color-accent-turquoise); /* Icone social turchesi */
}

.footer__newsletter {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.footer__newsletter-form {
    display: flex;
    width: 100%;
}

.footer__newsletter-form .input-field {
    flex-grow: 1;
    margin-bottom: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.footer__newsletter-form .btn {
    padding: var(--spacing-3) var(--spacing-4);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.footer__bottom-text {
    text-align: center;
    margin-top: var(--spacing-8);
    color: var(--color-text-dark);
}

/* Image Placeholder Style */
.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 250px;
    background: linear-gradient(45deg, #0D1117, #0F52BA, #FFD700); /* Sfondo scuro con mesh gradiente turchese e dorato */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-family: var(--font-family-primary);
    font-size: 1.8rem;
    text-align: center;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

/* Utility Classes (for Alpine.js transitions/states) */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.5s ease;
}
.fade-enter-from, .fade-leave-to {
    opacity: 0;
}

.slide-up-enter-active, .slide-up-leave-active {
    transition: all 0.5s ease;
}
.slide-up-enter-from, .slide-up-leave-to {
    opacity: 0;
    transform: translateY(20px);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .header__nav { gap: var(--spacing-6); }
    .footer .container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .header .container {
        flex-direction: column;
        gap: var(--spacing-4);
    }
    .header__logo {
        margin-bottom: var(--spacing-4);
    }
    .header__nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-4);
    }
    .footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__section {
        border-right: none;
        border-bottom: 1px solid var(--color-accent-gold);
    }
    .footer__section:last-child {
        border-bottom: none;
    }
    .footer__social-icons {
        justify-content: center;
    }
    .footer__newsletter-form {
        flex-direction: column;
    }
    .footer__newsletter-form .input-field,
    .footer__newsletter-form .btn {
        border-radius: var(--border-radius-sm);
        width: 100%;
    }
    .footer__newsletter-form .input-field {
        margin-bottom: var(--spacing-2);
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .header__logo { font-size: 1.5rem; }
    .btn {
        padding: var(--spacing-2) var(--spacing-4);
        font-size: 0.9rem;
    }
    .card__title { font-size: 1.2rem; }
    .card__image { height: 150px; }
    .image-placeholder { min-height: 180px; font-size: 1.2rem; }
}


/* 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;
    }
}

.gradient-text {
    background: linear-gradient(120deg, #FFD700, #5dd7ff, #ffd700);
    -webkit-background-clip: text;
    color: transparent;
}

.glow-divider {
    width: 120px;
    height: 2px;
    margin: 0 auto var(--spacing-6);
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.7), transparent);
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.6));
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: 999px;
    background: rgba(15, 82, 186, 0.2);
    color: var(--color-text-light);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 0 12px rgba(15, 82, 186, 0.45);
}

.hero-spotlight {
    background: rgba(13, 17, 23, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--glow-cyan);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(12px);
    position: relative;
}

.magnetic-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.magnetic-link:hover {
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: var(--glow-amber);
}

.contact-card {
    background: var(--surface-panel);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--spacing-8);
    min-width: 220px;
    text-align: left;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-card svg {
    width: 32px;
    height: 32px;
    color: var(--color-accent-gold);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--glow-cyan);
}

.newsletter-panel {
    background: rgba(12, 18, 26, 0.8);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    padding: var(--spacing-12);
    position: relative;
    overflow: hidden;
}

.newsletter-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 215, 0, 0.1), rgba(15, 82, 186, 0.08));
    opacity: 0.6;
    z-index: 0;
}

.newsletter-panel > * {
    position: relative;
    z-index: 1;
}

.grid-accent {
    position: relative;
    isolation: isolate;
}

.grid-accent::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
    z-index: 0;
}

.grid-accent > * {
    position: relative;
    z-index: 1;
}

@keyframes auroraPulse {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.55;
    }
    100% {
        transform: translate3d(2%, -2%, 0) scale(1.1);
        opacity: 0.75;
    }
}

@keyframes floatCard {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes shimmerLoop {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}