/* =================================================================
   DESIGN SYSTEM DEFINITIVO PER ANNOTA.AI
   Stile e armonia by Gemini
   ================================================================= */

/* --- 1. IMPOSTAZIONI GLOBALI E COLORI --- */
:root {
    --color-background: #0B0F19; /* Nero-blu profondo */
    --color-text: #E5E7EB;
    --color-text-muted: #9CA3AF;
    --color-accent: #8B5CF6; /* Viola/Indaco come colore primario */
    --color-border: rgba(255, 255, 255, 0.1);

    --bg-section-light: rgba(11, 15, 25, 0.6); /* Sfondo "chiaro", più trasparente */
    --bg-section-dark: rgba(17, 24, 39, 0.8); /* Sfondo "scuro", più opaco */
    --bg-card: rgba(23, 31, 46, 0.7);
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
}
body.modal-open {
    overflow: hidden;
}

/* --- 2. LAYOUT E SFONDI --- */
#particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: -1;
}
header {
    z-index: 50;
    border-bottom: 1px solid var(--color-border);
}
main {
    position: relative;
    z-index: 1;
}
/* Sfondi di sezione alternati */
.bg-transparent {
    background-color: transparent;
}
.bg-alternate {
    background-color: var(--bg-section-dark);
    backdrop-filter: blur(16px);
}

/* --- 3. ELEMENTI DI DESIGN --- */
.gradient-text {
    background: linear-gradient(90deg, #A78BFA, #3B82F6, #EC4899);
    -webkit-background-clip: text;
    background-clip: text; /* Riga aggiunta per massima compatibilità */
    -webkit-text-fill-color: transparent;
    animation: gradient-animation 5s ease infinite;
    background-size: 200% auto;
}
@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.cta-button {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2), 0 0 0 0 rgba(139, 92, 246, 0.7);
    cursor: pointer;
}
.cta-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3), 0 0 20px 4px rgba(139, 92, 246, 0.3);
}
.ghost-button {
    transition: all 0.3s ease;
    cursor: pointer;
}
.ghost-button:hover {
    transform: translateY(-3px);
    background-color: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}
.feature-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--color-border);
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

/* --- 4. NAVIGAZIONE --- */
nav a {
    transition: color 0.3s ease;
}
nav a.active {
    color: var(--color-accent);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}
.lang-dropdown { position: relative; }
.lang-dropdown-content {
    display: none; position: absolute; top: 100%; left: 0;
    background-color: #1F2937; border: 1px solid #374151;
    border-radius: 0.5rem; min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 10; margin-top: 8px; opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.lang-dropdown-content.show { display: block; opacity: 1; transform: translateY(0); }
.lang-option { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; cursor: pointer; transition: background-color 0.2s; }
.lang-option:hover { background-color: #374151; }

/* --- 5. COMPONENTI SPECIFICI (FAQ, MODAL, FORM) --- */
.faq-item details > summary { list-style: none; cursor: pointer; }
.faq-item details > summary::-webkit-details-marker { display: none; }
.faq-item details[open] summary svg { transform: rotate(180deg); }
.modal-overlay { transition: opacity 0.3s ease; }
.modal-content { transition: all 0.3s ease; max-height: 90vh; overflow-y: auto; }
.form-input { background-color: #1F2937; border: 1px solid #374151; color: #F3F4F6; transition: all 0.3s ease; }
.form-input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.4); }
.cookie-banner { transition: transform 0.5s ease-out, opacity 0.5s ease-out; }

.cookie-decline-button {
    background-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.cookie-decline-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* --- 6. LOGO SVG --- */
#header-logo-svg { height: 32px; width: auto; vertical-align: middle; }
#header-logo-svg .logo-path { fill-opacity: 0; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
#logo-icon .logo-path, #logo-text-annota .logo-path { stroke: #F3F4F6; fill: #F3F4F6; }
#logo-text-ai .logo-path { stroke: url(#logo-gradient-for-stroke); fill: url(#logo-gradient); }
@keyframes draw { 40% { stroke-dashoffset: 0; fill-opacity: 0; } 100% { stroke-dashoffset: 0; fill-opacity: 1; } }
#header-logo-svg.animate .logo-path { animation: draw 2s linear forwards; }

/* --- 7. SCORRIMENTO E ANIMAZIONI --- */
html {
    scroll-snap-type: y mandatory;
}
.full-page {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: 100vh;
    overflow: hidden; /* Nasconde la scrollbar della singola sezione */
    display: flex;
    flex-direction: column;
}
.section-content-wrapper {
    flex-grow: 1;
    overflow-y: auto; /* Abilita lo scroll solo se il contenuto eccede */
    display: flex;
    align-items: center;
    justify-content: center;
}
@keyframes contentFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.section-content {
    opacity: 0;
    width: 100%;
}
.section-content.in-view {
    animation: contentFadeInUp 0.8s 0.2s ease-out forwards;
}
/* --- 8. NASCONDI IL BADGE RECAPTCHA --- */
.grecaptcha-badge { 
    visibility: hidden; 
}