/* RayMarch Studio: lo stile comune alle pagine (bronzo e oro su pietra scura, come Runebrace) */
/* lo stile di Runebrace: bronzo e oro su pietra scura */
:root {
    --primary: #d97706;
    --primary-dark: #b45309;
    --secondary: #292524;
    --accent: #fcd34d;
    --dark: #1c1917;
    --light: #e5e1d8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.7;
    font-family: 'Lato', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, h2, h3, h4, .logo, .cta-button, .footer-title { font-family: 'Cinzel', serif; font-weight: 700; }

.noise {
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.04; z-index: -1; pointer-events: none;
}

.gradient-bg {
    position: fixed; inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(217, 119, 6, 0.1), transparent 70%),
                radial-gradient(circle at 85% 15%, rgba(252, 211, 77, 0.06), transparent 60%);
    z-index: -2; pointer-events: none;
}

header {
    background-color: rgba(28, 25, 23, 0.85);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(217, 119, 6, 0.3);
    padding: 0.9rem 1.5rem;
    position: fixed; width: 100%; z-index: 1000;
}

.navbar { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; gap: 1rem; }

.logo { display: flex; align-items: center; gap: 0.75rem; font-size: 1.5rem; color: var(--light); text-decoration: none; letter-spacing: 1px; }
.logo img { width: 40px; height: 40px; border-radius: 8px; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--light); text-decoration: none; font-weight: 700; position: relative; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--primary); }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 3px; bottom: -5px; left: 0; background: var(--primary); transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }

.cta-button {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background-color: var(--primary); color: #fff;
    border: 2px solid var(--primary-dark);
    padding: 0.75rem 1.5rem; border-radius: 4px; cursor: pointer;
    text-decoration: none; letter-spacing: 1px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.3), inset 0 0 5px rgba(255,255,255,0.2);
}
.cta-button:hover { transform: translateY(-2px); background-color: var(--accent); color: var(--dark); border-color: var(--primary); box-shadow: 0 6px 25px rgba(252, 211, 77, 0.4); }
.cta-button.ghost { background: transparent; color: var(--light); box-shadow: none; }
.cta-button.ghost:hover { background: rgba(217, 119, 6, 0.15); color: var(--accent); }

main { padding-top: 90px; max-width: 1200px; margin: 0 auto; padding-bottom: 5rem; }

.dev-status-banner {
    color: var(--accent); text-align: center; font-weight: 700; font-size: 0.95rem;
    padding: 0.7rem 1.5rem; background: rgba(252, 211, 77, 0.05);
    border: 1px solid rgba(252, 211, 77, 0.2); border-radius: 8px;
    margin: 1.5rem auto 2rem; max-width: 520px;
}

.hero { text-align: center; padding: 0 1.5rem; }
.hero h1 { font-size: 3.6rem; font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem; text-shadow: 0 2px 15px rgba(0,0,0,0.5); }
.accent { color: var(--primary); }
.hero p { font-size: 1.25rem; max-width: 780px; margin: 0 auto 2rem; color: rgba(229, 225, 216, 0.8); }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.5rem; }

.hero-image {
    width: 100%; border-radius: 14px; display: block;
    border: 2px solid rgba(217, 119, 6, 0.25);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.caption { text-align: center; font-size: 0.9rem; color: rgba(229, 225, 216, 0.55); margin-top: 0.75rem; }

.section-title {
    font-size: 2.8rem; font-weight: 800; text-align: center;
    margin: 5rem 0 1.5rem; padding-bottom: 1.5rem; position: relative;
}
.section-title::before, .section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); background: var(--primary); }
.section-title::before { height: 3px; width: 80px; border-radius: 2px; }
.section-title::after { height: 10px; width: 10px; border-radius: 50%; bottom: -3.5px; box-shadow: -35px 0 0 var(--primary), 35px 0 0 var(--primary); }

.section-subtitle { font-size: 1.2rem; color: rgba(229, 225, 216, 0.7); max-width: 850px; margin: 0 auto 3rem; text-align: center; }

section { padding: 0 1.5rem; }

.feature-showcase { display: flex; flex-direction: column; gap: 3rem; }
.feature-item {
    display: flex; align-items: center; gap: 3rem;
    background-color: var(--secondary); padding: 2rem; border-radius: 12px;
    border: 1px solid rgba(217, 119, 6, 0.2); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.feature-item:nth-child(even) { flex-direction: row-reverse; }
.feature-media { flex: 1.3; min-width: 0; }
.feature-media img {
    width: 100%; display: block; border-radius: 10px; cursor: zoom-in;
    border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}
.feature-media img:hover { transform: scale(1.015); }
.feature-text { flex: 1; }
.feature-text h4 { font-size: 1.6rem; color: var(--primary); margin-bottom: 0.9rem; line-height: 1.3; }
.feature-text p { color: rgba(229, 225, 216, 0.82); margin-bottom: 0.8rem; }
.feature-text ul { list-style: none; color: rgba(229, 225, 216, 0.82); }
.feature-text li { padding-left: 1.6rem; position: relative; margin-bottom: 0.35rem; }
.feature-text li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--primary); position: absolute; left: 0; font-size: 0.85rem; top: 0.25rem; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.gallery img {
    width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-radius: 10px; cursor: zoom-in;
    border: 1px solid rgba(217, 119, 6, 0.2); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery img:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(217, 119, 6, 0.25); }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.spec {
    background: var(--secondary); border: 1px solid rgba(217, 119, 6, 0.2); border-radius: 12px; padding: 1.5rem;
}
.spec i { color: var(--primary); font-size: 1.6rem; margin-bottom: 0.6rem; }
.spec h4 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.spec p { color: rgba(229, 225, 216, 0.75); font-size: 0.97rem; }

.contact {
    padding: 3rem 1.5rem; margin: 5rem 1.5rem 0; text-align: center;
    background: linear-gradient(135deg, var(--secondary), var(--dark));
    border: 1px solid rgba(217, 119, 6, 0.25); border-radius: 12px;
}
.contact h2 { font-size: 2.4rem; margin-bottom: 1rem; }
.contact p { color: rgba(229, 225, 216, 0.8); max-width: 640px; margin: 0 auto 1.5rem; }
.small-note { font-size: 0.9rem; color: #8f877c; max-width: 560px; margin: 1rem auto 0; }

footer { border-top: 1px solid rgba(217, 119, 6, 0.2); padding: 2rem 1.5rem; text-align: center; color: #8f877c; font-size: 0.9rem; }
footer a { color: var(--primary); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* le immagini a tutto schermo */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: center; z-index: 2000; cursor: zoom-out; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.8); }

@media (max-width: 900px) {
    .nav-links { display: none; }
    header { padding: 0.7rem 1rem; }
    .logo { font-size: 1.15rem; }
    .logo img { width: 32px; height: 32px; }
    .navbar .cta-button { padding: 0.5rem 0.8rem; font-size: 0.85rem; }
    .navbar .cta-button .label { display: none; }
    .dev-status-banner { margin: 1rem 1rem 1.5rem; }
    .hero p { font-size: 1.05rem; }
    .contact h2 { font-size: 1.8rem; }
    .contact .cta-button { font-size: 1rem !important; padding: 0.9rem 1.2rem !important; }
    .hero h1 { font-size: 1.9rem; overflow-wrap: anywhere; }
    .section-title { font-size: 2.1rem; }
    .feature-item, .feature-item:nth-child(even) { flex-direction: column; gap: 1.5rem; padding: 1.25rem; }
    .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { #download-link { padding: 0.9rem 1rem !important; font-size: 0.9rem !important; } }   /* il pulsante di download sta nel riquadro anche sul telefono */
@media (max-width: 600px) { #download-win10, #download-win7 { display: block; text-align: center; font-size: 0.95rem !important; padding: 0.9rem 1rem !important; line-height: 1.5; } }   /* TaraStack: due pulsanti lunghi, sul telefono il testo va a capo intero */
    

/* ---- le sotto-pagine (0.5b): la barra delle sezioni, le schede della pagina principale */
.nav-links { order: 2; gap: 1.5rem; white-space: nowrap; font-size: 0.95rem; }
.navbar > .cta-button { order: 3; }
.nav-links a.active { color: var(--accent); }
.specs.three { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.nav-links a.active::after { width: 100%; background: var(--accent); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
    display: flex; flex-direction: column; text-decoration: none; color: var(--light);
    background: var(--secondary); border: 1px solid rgba(217, 119, 6, 0.2); border-radius: 12px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 14px 34px rgba(217, 119, 6, 0.25); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.card .card-body { padding: 1.2rem 1.4rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 0.5rem; }
.card p { color: rgba(229, 225, 216, 0.8); font-size: 0.97rem; flex: 1; }
.card .more { margin-top: 0.9rem; color: var(--accent); font-weight: 700; font-size: 0.95rem; }

.page-intro { text-align: center; padding: 1rem 1.5rem 0; }
.page-intro h1 { font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.page-intro p { font-size: 1.2rem; max-width: 820px; margin: 0 auto; color: rgba(229, 225, 216, 0.8); }

.page-next { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 4rem 1.5rem 0; }

.feature-media.narrow { text-align: center; }
.feature-media.narrow img { max-height: 420px; width: auto; max-width: 100%; display: inline-block; }

@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
    /* sul telefono le sezioni restano: una riga che scorre sotto il logo */
    .navbar { flex-wrap: wrap; }
    .navbar > .cta-button { order: 2; }
    .nav-links { display: flex; order: 3; width: 100%; gap: 1.2rem; overflow-x: auto; padding: 0.3rem 0 0.2rem; font-size: 0.9rem; white-space: nowrap; scrollbar-width: none; }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links a::after { bottom: -2px; }
    main { padding-top: 120px; }
    .page-intro h1 { font-size: 2rem; }
    .cards { grid-template-columns: 1fr; }
}
