:root {
    --bg-color: #050a14;
    --text-color: #e0e6ed;
    --primary-color: #0b162a;
    --accent-color: #d4af37;
    --accent-color-hover: #f9d768;
    --glass-bg: rgba(11, 22, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 1rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo { display: flex; align-items: center; }

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Text logo (used until image logo is ready) */
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-text:hover { color: var(--accent-color-hover); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover { color: var(--accent-color); }

/* Nav highlight for migration link */
.nav-links li a.nav-highlight {
    color: var(--accent-color);
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    padding-bottom: 2px;
}

.nav-links li a.nav-highlight:hover { color: var(--accent-color-hover); }

/* Hero */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 0%, var(--bg-color) 90%);
}

/* Fallback atmospheric gradient when no hero image */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(11, 22, 42, 0.8) 0%, transparent 50%);
    z-index: -1;
}

.hero-content { position: relative; z-index: 1; padding: 0 2rem; }

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content .highlight {
    color: var(--accent-color);
    font-size: 2.8rem;
    display: block;
    margin-top: 0.5rem;
}

.hero-content p {
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 2rem;
    color: #cbd5e1;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Trust badges strip */
.trust-strip {
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(11, 22, 42, 0.6);
    padding: 1.2rem 2rem;
}

.trust-strip-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-badge span.badge-icon {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Services */
.services-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    color: #a0aec0;
    font-size: 1.05rem;
    line-height: 1.7;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    flex: 0 1 320px;
    width: 100%;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

/* Highlighted card (migration) */
.card.card-featured {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.03);
    position: relative;
}

.card.card-featured::before {
    content: 'URGENTE';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--primary-color);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 3px 12px;
    border-radius: 2px;
    font-family: var(--font-body);
}

.card.card-featured:hover {
    border-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.06);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.card p {
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.card-link:hover { border-color: var(--accent-color); }

/* Comparison table */
.comparison-section {
    padding: 6rem 2rem;
    max-width: 1050px;
    margin: 0 auto;
}

.comparison-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(11, 22, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.comparison-table th,
.comparison-table td {
    padding: 1.2rem 0.8rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.comparison-table th {
    background: rgba(11, 22, 42, 0.95);
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
    border-bottom: 2px solid var(--glass-border);
}

.comparison-table td:first-child,
.comparison-table th:first-child {
    text-align: left;
    padding-left: 1.5rem;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: #e0e6ed;
    font-size: 0.95rem;
}

/* Highlight "ArchiviCloud" column */
.comparison-table th:nth-child(2) {
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.12), rgba(11, 22, 42, 0.95));
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    font-weight: 800;
}

.comparison-table td:nth-child(2) {
    background: rgba(212, 175, 55, 0.03);
    border-right: 1px solid rgba(212, 175, 55, 0.1);
    border-left: 1px solid rgba(212, 175, 55, 0.1);
}

.comparison-table tr:hover td:nth-child(2) {
    background-color: rgba(212, 175, 55, 0.07);
}

.comparison-table tr:hover td { background-color: rgba(255, 255, 255, 0.04); }
.comparison-table tr:last-child td { border-bottom: none; }

.check-icon { color: #48bb78; font-size: 1.2rem; }
.cross-icon { color: #f56565; font-size: 1.2rem; }
.partial-icon { color: #e9b64a; font-size: 1.2rem; }

/* About section */
.about-section {
    padding: 6rem 2rem;
    background: linear-gradient(to right, var(--primary-color), var(--bg-color));
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #fff;
}

.about-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
    line-height: 1.8;
}

.tagline {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.text-link {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-color);
}

.text-link:hover { border-bottom-style: solid; }

/* Content page (service pages, chi siamo, etc.) */
.content-hero {
    position: relative;
    height: 55vh;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.content-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.content-body h2 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.content-body h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.content-body p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-body ul {
    color: #a0aec0;
    padding-left: 1.5rem;
    line-height: 1.9;
    margin-bottom: 1rem;
}

.content-body ul li { margin-bottom: 0.25rem; }

/* Process steps */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    counter-reset: steps;
}

.steps-list li {
    counter-increment: steps;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.steps-list li:last-child { border-bottom: none; }

.steps-list li::before {
    content: counter(steps);
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content strong {
    display: block;
    color: #fff;
    margin-bottom: 0.25rem;
}

.step-content span { color: #a0aec0; font-size: 0.95rem; }

/* Pricing cards */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 3rem 0;
}

.price-card {
    flex: 0 1 280px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.price-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.price-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #fff;
    margin: 0.5rem 0;
}

.price-period {
    font-size: 0.8rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.price-features li {
    font-size: 0.9rem;
    color: #a0aec0;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-features li:last-child { border-bottom: none; }

.price-features li::before {
    content: '✓';
    color: #48bb78;
    font-weight: bold;
    flex-shrink: 0;
}

/* Info box (callout) */
.info-box {
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box p {
    margin: 0;
    color: #e0e6ed;
    font-size: 0.95rem;
}

/* Warning box */
.warning-box {
    background: rgba(245, 101, 101, 0.06);
    border: 1px solid rgba(245, 101, 101, 0.25);
    border-left: 4px solid #f56565;
    border-radius: 4px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-box p { margin: 0; color: #e0e6ed; font-size: 0.95rem; }

/* Contact section */
.contact-section {
    padding: 6rem 2rem;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.3rem;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
}

.contact-section > p {
    color: #a0aec0;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    text-align: left;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
}

.contact-form select option { background: #0b162a; color: #fff; }

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #4a5568; }

.submit-button {
    padding: 1rem;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: background 0.3s ease;
    font-family: var(--font-body);
}

.submit-button:hover { background: var(--accent-color-hover); }
.submit-button:disabled { opacity: 0.6; cursor: not-allowed; }

.contact-info {
    margin-top: 2rem;
    color: #a0aec0;
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 4rem 2rem 2rem;
    background: #0b162a;
    border-top: 1px solid var(--glass-border);
    color: #a0aec0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.footer-section h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.footer-section a {
    color: #a0aec0;
    transition: color 0.3s ease;
}

.footer-section a:hover { color: var(--accent-color); }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    font-size: 0.82rem;
    color: #4a5568;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; transition-delay: 0.6s; }

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content .highlight { font-size: 1.9rem; }
    .nav-links { display: none; }
    .trust-strip-inner { gap: 1rem; }
    .trust-badge { font-size: 0.75rem; }
    .content-body { padding: 3rem 1.5rem; }
    .comparison-table { font-size: 0.8rem; }
    .comparison-table th, .comparison-table td { padding: 0.8rem 0.4rem; }
}
