/* =============================================
   AiCreativa.eu — Design System Completo
   ============================================= */

:root {
    --container-w: 860px;
    --radius: 14px;
    --radius-sm: 8px;
    --font-main: 'Geist', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Syne', ui-sans-serif, system-ui, sans-serif;
    --bg-body:   #030712; /* Nero profondo stile OpenAI/Anthropic */
    --bg-card:   #0b1329; /* Sfondo card scuro e raffinato */
    --bg-header: rgba(3, 7, 18, 0.85);
    --text-main: #f9fafb;
    --text-muted:#9ca3af;
    --brand:     #6366f1; /* Sostituito accent/colore con Indigo */
    --brand-dark:#4f46e5;
    --accent:    #14b8a6; /* Teal come secondo colore della palette aurora */
    --accent-dark:#0d9488;
    --border:    rgba(255,255,255,0.06);
    --border-brand: rgba(99,102,241,0.2); /* Border leggermente luminoso */
    --shadow:    0 20px 40px -15px rgba(0,0,0,0.8);
    --success:   #10b981;
    --yt-red:    #FF0000;
    --gplay-green:#34A853;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-main);
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--accent); }

img { max-width: 100%; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    margin: 0 0 1rem;
    line-height: 1.25;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 2rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; color: var(--text-muted); }
p strong { color: var(--text-main); }

blockquote { margin: 0; }

/* ---- Layout ---- */
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 1.5rem; }
.py-section { padding: 4.5rem 0; }
.text-center { text-align: center; }

/* ---- Scroll Indicator ---- */
#scroll-indicator {
    position: fixed; top: 0; left: 0; height: 3px;
    background: linear-gradient(to right, var(--brand), var(--accent));
    z-index: 9999; width: 0%; transition: width 0.1s ease;
}

/* =============================================
   HEADER — Sticky con Nav
   ============================================= */
#site-header {
    position: sticky; top: 0; z-index: 500;
    background: var(--bg-header);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-img { height: 56px; width: auto; display: block; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--text-main); background: rgba(255,255,255,0.06); }

.main-nav .btn-nav {
    background: var(--accent);
    color: #000;
    font-weight: 800;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}
.main-nav .btn-nav:hover { background: var(--accent-dark); color: #000; }

/* =============================================
   HERO
   ============================================= */
.hero { 
    padding: 6rem 0 4rem; 
    position: relative;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(20, 184, 166, 0.12) 0%, transparent 50%);
}

.hero h1 { margin-bottom: 1.25rem; }

.hero > p { font-size: 1.1rem; max-width: 620px; margin: 0 auto 2.5rem; }

/* Info grid (Durata / Impegno / Livello) */
.info-grid {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin: 2.5rem 0 0;
    padding: 1.5rem;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.info-item { text-align: center; }
.info-item span {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 0.2rem;
}
.info-item strong { font-size: 1.05rem; color: var(--brand); }

/* =============================================
   PULSANTE
   ============================================= */
.btn {
    display: inline-block;
    padding: 1rem 2.75rem;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 50px; /* Pill shape */
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
    box-shadow: 0 4px 25px rgba(99, 102, 241, 0.35);
    letter-spacing: 0.02em;
}
.btn:hover {
    transform: scale(1.03);
    filter: brightness(1.12);
    box-shadow: 0 6px 30px rgba(20, 184, 166, 0.5);
    color: #ffffff !important;
}

/* =============================================
   REVEAL ANIMATION
   ============================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* =============================================
   PERCORSO FORMATIVO
   ============================================= */
.program-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }

.program-item {
    background: linear-gradient(145deg, var(--bg-card), #0b1120);
    padding: 1.8rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-brand);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: border-color 0.3s, transform 0.3s;
}
.program-item:hover { border-color: var(--accent); transform: translateY(-4px); }

.step-num {
    font-size: 2.4rem;
    font-weight: 900;
    background: linear-gradient(to bottom, var(--accent), var(--brand));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    line-height: 1;
    min-width: 3rem;
}

.program-item div strong {
    display: block;
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 700px) {
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.35s, transform 0.35s;
}
.testimonial:hover { border-color: var(--brand); transform: translateY(-6px); }

.testimonial p {
    font-style: italic;
    color: var(--text-main);
    opacity: 0.88;
    margin-bottom: 1rem;
    font-size: 0.93rem;
    line-height: 1.7;
}

.testimonial cite {
    font-style: normal;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}
.testimonial cite a { color: var(--brand); }
.testimonial cite a:hover { color: var(--accent); }

/* =============================================
   BIO
   ============================================= */
.bio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}
@media (min-width: 640px) {
    .bio-grid { grid-template-columns: 220px 1fr; }
}

.bio-img {
    width: 100%;
    max-width: 220px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 2px solid var(--border-brand);
    display: block;
    margin: 0 auto;
}

.bio-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    display: grid;
    gap: 0.75rem;
}
.bio-list li {
    padding-left: 1rem;
    border-left: 3px solid var(--brand);
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.55;
}
.bio-list li strong { color: var(--text-main); }

.bio-quote {
    background: rgba(59,130,246,0.08);
    border-left: 4px solid var(--brand);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    font-size: 0.97rem;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

.golden-rule {
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.golden-rule strong { color: var(--accent); }

/* =============================================
   RISORSE (YouTube + Ebook) — NUOVA SEZIONE
   ============================================= */
.resources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}
@media (min-width: 600px) {
    .resources-grid { grid-template-columns: 1fr 1fr; }
}

.resource-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-decoration: none;
    background: var(--bg-card);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.resource-youtube { border-color: rgba(255,0,0,0.2); }
.resource-youtube:hover { border-color: var(--yt-red); box-shadow: 0 10px 30px rgba(255,0,0,0.15); }

.resource-playstore { border-color: rgba(52,168,83,0.2); }
.resource-playstore:hover { border-color: var(--gplay-green); box-shadow: 0 10px 30px rgba(52,168,83,0.15); }

.resource-icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.resource-youtube .resource-icon { background: rgba(255,0,0,0.12); }
.resource-playstore .resource-icon { background: rgba(52,168,83,0.12); }

.resource-icon svg { width: 30px; height: 30px; }

.resource-info h3 {
    color: var(--text-main);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}
.resource-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.resource-cta {
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-block;
}
.resource-youtube .resource-cta { color: var(--yt-red); }
.resource-playstore .resource-cta { color: var(--gplay-green); }

/* =============================================
   CTA BOX (Prezzi + Form)
   ============================================= */
.cta-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
@media (min-width: 700px) {
    .cta-box { grid-template-columns: 1fr 1fr; }
}

/* Price Box */
.price-box {
    border: 2px solid var(--brand);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    background: linear-gradient(160deg, rgba(59,130,246,0.06), transparent);
}

.scarcity-badge {
    display: inline-block;
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.4);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}
.price-val {
    font-size: 3.8rem;
    font-weight: 900;
    color: var(--brand);
    line-height: 1;
    margin-bottom: 0.2rem;
}
.price-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
    display: inline-block;
}
.price-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0;
    font-size: 0.92rem;
    color: var(--text-main);
}

.check-icon {
    color: var(--success);
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    flex-shrink: 0;
    display: inline-block;
}

.guarantee-note {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.55;
    text-align: left;
    margin-top: 1rem;
}
.guarantee-note strong { color: var(--success); }

/* Form */
.form-container h2 { margin-bottom: 0.5rem; font-size: 1.5rem; }

.form-group {
    margin-bottom: 1rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: border-color 0.25s, background 0.25s;
    outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand);
    background: rgba(59,130,246,0.05);
}
.form-group textarea { resize: vertical; }

/* Privacy checkbox */
.privacy-group { margin-bottom: 0.5rem; }

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
}
.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--brand);
    cursor: pointer;
}
.privacy-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.privacy-text a { color: var(--brand); }

/* =============================================
   FOOTER
   ============================================= */
footer {
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-main); }

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.social-icon-link:hover {
    transform: scale(1.1);
    background: rgba(255,255,255,0.08);
}
.social-icon-link.yt:hover { border-color: var(--yt-red); }
.social-icon-link.gplay:hover { border-color: var(--gplay-green); }

.social-icon-link svg { width: 18px; height: 18px; }

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =============================================
   COOKIE BAR
   ============================================= */
#cookie-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 900;
    flex-wrap: wrap;
    text-align: center;
}

/* =============================================
   ERROR MESSAGE
   ============================================= */
#error-message {
    background: #ef4444;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}
#error-message a { color: white; text-decoration: underline; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 520px) {
    .main-nav a:not(.btn-nav) { display: none; }
    .hero { padding: 3rem 0 2rem; }
    .info-grid { flex-wrap: wrap; }
    .program-item { flex-direction: column; gap: 0.75rem; }
    .price-box { padding: 2rem 1.25rem; }
    .cta-box { padding: 2.5rem 0; }
}


/* =============================================
   VISUALLY HIDDEN (accessibilità + AEO)
   ============================================= */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* =============================================
   HERO ANSWER (risposta diretta per AEO)
   ============================================= */
.hero-answer {
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 1.25rem;
    color: var(--text-main) !important;
    background: rgba(59,130,246,0.06);
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 0.85rem 1.1rem;
    text-align: left;
    line-height: 1.65;
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-list {
    display: grid;
    gap: 0.85rem;
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-brand);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item:hover,
.faq-item[open] {
    border-color: var(--brand);
}
.faq-item[open] {
    box-shadow: 0 4px 20px rgba(59,130,246,0.10);
}

.faq-question {
    list-style: none;
    padding: 1.2rem 1.5rem;
    font-weight: 700;
    font-size: 0.97rem;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    user-select: none;
    transition: color 0.2s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--brand);
    flex-shrink: 0;
    transition: transform 0.3s;
}
details[open] .faq-question::after {
    transform: rotate(45deg);
}
.faq-question:hover { color: var(--brand); }

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    border-top: 1px solid var(--border);
}
.faq-answer p {
    margin: 0.75rem 0 0;
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--text-muted);
}
.faq-answer p strong { color: var(--text-main); }
.faq-answer p a { color: var(--brand); }

/* =============================================
   FOOTER ADDRESS
   ============================================= */
.footer-address {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-style: normal;
    text-align: center;
}
.footer-address a { color: var(--brand); }
.footer-address strong { color: var(--text-main); }

/* =============================================
   RESPONSIVE FAQ
   ============================================= */
@media (max-width: 520px) {
    .faq-question { font-size: 0.9rem; padding: 1rem 1.1rem; }
    .faq-answer { padding: 0 1.1rem 1rem; }
    .hero-answer { font-size: 0.95rem; }
}
