:root {
    --capsule-cyan: #00E5EE; /* Un ciano brillante */
    --capsule-cyan-dark: #00B2B8;
    --capsule-bg: #1a2330; /* Sfondo scuro tecnologico */
    --capsule-bg-light: #2a384a;
    --capsule-text: #e0e0e0;
    --capsule-text-dark: #a0a0a0;
    --accent-yellow: #FFD700; /* Oro/Giallo */
    --accent-orange: #FF8C00;
    --status-available: #4CAF50;
    --status-coming-soon: #FFC107;
    --status-sold-out: #F44336;

    --font-primary: 'Roboto', sans-serif;
    --font-display: 'Orbitron', sans-serif; /* Font tecnologico per titoli */
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--capsule-bg);
    /* Immagine di sfondo tecnologica sottile */
    background-image: linear-gradient(rgba(26, 35, 48, 0.95), rgba(26, 35, 48, 0.95)), url('images/tech_background.svg');
    background-size: cover; /* o '300px' per un pattern ripetuto */
    background-attachment: fixed;
    color: var(--capsule-text);
    line-height: 1.7;
    overflow-x: hidden; /* Previene scroll orizzontale da animazioni */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* --- BANNER LAVORI IN CORSO --- */
.construction-banner {
    background-color: var(--accent-orange);
    color: var(--capsule-bg);
    text-align: center;
    padding: 12px 0;
    font-weight: bold;
    font-size: 1em;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--capsule-cyan);
    box-shadow: 0 3px 10px rgba(0, 229, 238, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.construction-light {
    width: 10px;
    height: 10px;
    background-color: var(--capsule-cyan);
    border-radius: 50%;
    margin: 0 15px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 5px var(--capsule-cyan); opacity: 1; }
    50% { box-shadow: 0 0 15px var(--capsule-cyan); opacity: 0.7; }
}

/* --- HEADER --- */
header {
    background: rgba(30, 42, 58, 0.8); /* Sfondo semi-trasparente */
    backdrop-filter: blur(5px);
    color: var(--capsule-text);
    padding-top: 70px; /* Spazio per banner lavori */
    padding-bottom: 15px;
    position: sticky; /* Rimane visibile allo scroll dopo il banner */
    top: 50px; /* Altezza banner lavori */
    z-index: 999;
    border-bottom: 1px solid var(--capsule-cyan-dark);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    height: 50px;
    filter: drop-shadow(0 0 5px var(--capsule-cyan));
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav li {
    margin-left: 25px;
}

header nav a {
    color: var(--capsule-text);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.9em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

header nav a:hover, header nav a.active {
    background-color: var(--capsule-cyan);
    color: var(--capsule-bg);
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* --- HERO SECTION --- */
#hero {
    height: calc(100vh - 70px - 50px); /* Altezza header e banner */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(26, 35, 48, 0.7), rgba(26, 35, 48, 0.9)),
                url('images/dragonball_z_bg_concept.jpg') no-repeat center center/cover; /* Sostituisci con un'immagine a tema Dragon Ball / Spazio */
    color: #fff;
    padding: 0 20px;
    position: relative; /* Per pseudo-elementi se necessario */
}

#hero::before { /* Overlay per un effetto più tech */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(45deg, var(--capsule-cyan-dark) 1px, transparent 1px),
        linear-gradient(-45deg, var(--capsule-cyan-dark) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    pointer-events: none;
}


.hero-content h1 {
    font-family: var(--font-display);
    font-size: 3.5em;
    margin-bottom: 0.3em;
    color: var(--capsule-cyan);
    text-shadow: 0 0 15px var(--capsule-cyan);
    animation: fadeInDown 1s ease-out;
}

.hero-content h2 {
    font-size: 1.8em;
    margin-bottom: 0.8em;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: backwards; /* Inizia l'animazione solo quando è visibile */
}

.hero-content p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: backwards;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-yellow);
    color: var(--capsule-bg);
    padding: 12px 30px;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.1em;
    border-radius: 50px; /* Stile capsula */
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    animation: pulseButton 2s infinite, fadeInUp 1s ease-out 0.9s;
    animation-fill-mode: backwards;
}

.cta-button:hover {
    background-color: var(--accent-orange);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-orange);
}

@keyframes pulseButton {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}


/* --- SEZIONI GENERICHE --- */
section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    color: var(--capsule-cyan);
    position: relative;
}
.section-title span { /* Per i // */
    color: var(--accent-yellow);
    margin-right: 10px;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--capsule-cyan);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1em;
    color: var(--capsule-text-dark);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Chi Siamo */
#chi-siamo {
    background-color: var(--capsule-bg-light);
}
.about-us-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.about-text {
    flex: 2;
}
.mission-statement {
    flex: 1;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-left: 4px solid var(--capsule-cyan);
    border-radius: 0 8px 8px 0;
}
.mission-statement h3 {
    font-family: var(--font-display);
    color: var(--capsule-cyan);
    margin-bottom: 10px;
}

.messaggio-speciale {
    background: linear-gradient(135deg, rgba(0, 229, 238, 0.1), rgba(0, 178, 184, 0.15));
    border: 1px solid var(--capsule-cyan-dark);
    border-left: 5px solid var(--accent-yellow);
    padding: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 1.1em;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 229, 238, 0.1);
}
.messaggio-speciale strong {
    color: var(--accent-yellow);
    font-family: var(--font-display);
}
.messaggio-speciale br + strong {
    font-size: 1.2em;
    display: inline-block;
    margin-top: 10px;
    color: var(--capsule-cyan);
}


/* Creazioni / Galleria */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.figure-card {
    background-color: var(--capsule-bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid transparent; /* Per un effetto hover */
}

.figure-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 229, 238, 0.3);
    border-color: var(--capsule-cyan);
}

.figure-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-bottom: 3px solid var(--capsule-cyan);
}

.figure-info {
    padding: 20px;
}

.figure-info h3 {
    font-family: var(--font-display);
    color: var(--capsule-cyan);
    margin-bottom: 8px;
    font-size: 1.4em;
}

.figure-info p {
    font-size: 0.95em;
    color: var(--capsule-text-dark);
    margin-bottom: 15px;
}

.status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}
.status.available { background-color: var(--status-available); color: white; }
.status.coming-soon { background-color: var(--status-coming-soon); color: var(--capsule-bg); }
.status.sold-out { background-color: var(--status-sold-out); color: white; }

.figure-card.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(42, 56, 74, 0.7); /* Più trasparente */
    border: 2px dashed var(--capsule-cyan-dark);
}
.placeholder-content {
    text-align: center;
}
.capsule-placeholder-icon {
    width: 60px;
    height: 60px;
    opacity: 0.5;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px var(--capsule-cyan));
}
.placeholder-content p {
    font-family: var(--font-display);
    color: var(--capsule-cyan);
    font-size: 1.1em;
}

/* Contatti */
#contatti {
    background-color: var(--capsule-bg-light);
}
.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--capsule-bg);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 229, 238, 0.2);
}
.contact-method svg {
    fill: var(--capsule-cyan);
    width: 28px;
    height: 28px;
}
.contact-method a {
    color: var(--capsule-text);
    text-decoration: none;
}
.contact-method a:hover {
    color: var(--capsule-cyan);
}
.social-placeholder {
    color: var(--accent-yellow);
    font-weight: bold;
}

/* --- FOOTER --- */
footer {
    background-color: #121820; /* Ancora più scuro */
    color: var(--capsule-text-dark);
    text-align: center;
    padding: 40px 0;
    margin-top: 0; /* Se l'ultima sezione ha bg diverso */
    border-top: 2px solid var(--capsule-cyan-dark);
}
.footer-logo {
    width: 40px;
    height: 40px;
    opacity: 0.7;
    margin-bottom: 15px;
    filter: grayscale(50%) brightness(1.5);
}
footer p {
    margin-bottom: 8px;
    font-size: 0.9em;
}
footer small {
    font-size: 0.8em;
}


/* Animazioni al caricamento / scroll */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animated-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animated-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- RESPONSIVE --- */
@media(max-width: 992px) {
    .hero-content h1 { font-size: 2.8em; }
    .hero-content h2 { font-size: 1.5em; }
    .section-title { font-size: 2em; }
    .about-us-content { flex-direction: column; }
    .mission-statement { border-radius: 8px; border-left: none; border-top: 4px solid var(--capsule-cyan); }
}

@media(max-width: 768px) {
    header .container {
        flex-direction: column;
        padding-bottom: 10px; /* Spazio per la nav sotto */
    }
    #logo { margin-bottom: 15px; }
    header nav ul { justify-content: center; width: 100%; }
    header nav li { margin: 0 10px; }

    #hero { height: auto; min-height: 70vh; padding: 80px 20px; }
    .hero-content h1 { font-size: 2.2em; }
    .hero-content h2 { font-size: 1.3em; }
    .cta-button { font-size: 1em; padding: 10px 25px; }

    .gallery { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .contact-methods { flex-direction: column; align-items: center; }
    .contact-method { width: 80%; justify-content: center; }
}

@media(max-width: 480px) {
    .construction-banner { font-size: 0.85em; }
    .construction-light { width: 8px; height: 8px; margin: 0 10px; }
    header { padding-top: 60px; top: 42px; /* Adeguare all'altezza del banner ridotta */ }
    header nav a { font-size: 0.8em; }
    .hero-content h1 { font-size: 1.8em; }
    .hero-content h2 { font-size: 1.1em; }
    .section-title { font-size: 1.8em; }
    .figure-card img { height: 200px; }
}