/* CSS Reset e Variabili */
:root {
    /* Palette RITUALA: Espresso, Crema e Oro */
    --clr-bg: #0d0905;       /* Sfondo molto scuro, caffè ristretto */
    --clr-surface: #1a1410;  /* Superficie card */
    --clr-text: #f0ebe1;     /* Testo color crema, alta leggibilità */
    --clr-text-muted: #bdae9c; /* Testo secondario */
    --clr-primary: #d4a373;  /* Oro / Crema chiaro scuro */
    --clr-primary-hover: #b38656;
    --clr-accent: #fae1c5;   /* Crema brillante */
    
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

.text-center { text-align: center; }
.section-padding { padding: 100px 0; }

/* Tipografia */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
}

/* Header e Banner */
.hype-banner {
    background: var(--clr-primary);
    color: var(--clr-bg);
    text-align: center;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 101;
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.4);
}

#main-header {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background: rgba(13, 9, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-primary);
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo-dot {
    color: var(--clr-accent);
}

#desktop-nav a {
    color: var(--clr-text);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.95rem;
    transition: var(--transition);
}

#desktop-nav a:hover { color: var(--clr-primary); }

/* Bottoni */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-bg);
}

.btn-primary:hover {
    background-color: var(--clr-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 163, 115, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: var(--clr-bg);
}

.btn-large { padding: 16px 36px; font-size: 1.1rem; }
.btn-huge { padding: 20px 48px; font-size: 1.2rem; font-weight: 600; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.15) 0%, rgba(13, 9, 5, 0) 70%);
    z-index: -1;
}

.hero-img {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 10;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(212, 163, 115, 0.2);
    animation: float 6s ease-in-out infinite;
    object-fit: cover;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(212, 163, 115, 0.1);
    color: var(--clr-primary);
    border: 1px solid rgba(212, 163, 115, 0.3);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    max-width: 900px;
    margin: 0 auto 24px;
    color: var(--clr-accent);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--clr-text-muted);
    max-width: 650px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Value Props / Benefici */
.section-title h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: var(--clr-accent);
    margin-bottom: 16px;
}

.section-title p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card.glass {
    background: rgba(26, 20, 16, 0.6);
    border: 1px solid rgba(212, 163, 115, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.card.glass:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 163, 115, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--clr-accent);
}

.card p { color: var(--clr-text-muted); }

/* Tabella Comparativa */
.dark-bg { background-color: #080603; }

.table-container {
    overflow-x: auto;
    background: rgba(26, 20, 16, 0.8);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(212, 163, 115, 0.1);
    padding: 30px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.compare-table th, .compare-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.compare-table th {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--clr-text-muted);
    font-weight: normal;
}

.highlight-col {
    background: rgba(212, 163, 115, 0.05);
    color: var(--clr-accent);
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1f150d 0%, #110b07 100%);
    border-top: 1px solid rgba(212, 163, 115, 0.2);
    border-bottom: 1px solid rgba(212, 163, 115, 0.2);
}

.cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.cta-text h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--clr-primary);
}

/* Footer */
#footer {
    padding: 60px 0 30px;
    background: var(--clr-bg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    margin-bottom: 30px;
}

.footer-brand h3 {
    color: var(--clr-primary);
    font-size: 1.8rem;
}

.footer-brand p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--clr-text-muted);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
}

.footer-links a:hover { color: var(--clr-primary); }

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Tester Section */
.tester-section {
    background: linear-gradient(180deg, var(--clr-bg) 0%, #120d08 100%);
    border-top: 1px solid rgba(212, 163, 115, 0.15);
}

.tester-form-wrapper {
    max-width: 520px;
    margin: 0 auto;
    background: rgba(26, 20, 16, 0.7);
    border: 1px solid rgba(212, 163, 115, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    backdrop-filter: blur(10px);
}

.tester-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.tester-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    margin-bottom: 8px;
}

.tester-form input,
.tester-form select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(13, 9, 5, 0.8);
    border: 1px solid rgba(212, 163, 115, 0.15);
    border-radius: var(--radius-sm);
    color: var(--clr-text);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.tester-form input:focus,
.tester-form select:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.1);
}

.tester-form input::placeholder {
    color: rgba(173, 158, 140, 0.5);
}

.tester-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4a373' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.tester-form .btn {
    width: 100%;
    margin-top: 10px;
}

.form-note {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    margin-top: 16px;
    opacity: 0.7;
}

.form-success {
    padding: 40px 20px;
}

.form-success p {
    font-size: 1.2rem;
    color: var(--clr-accent);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    #desktop-nav { display: none; }
    .hero-buttons { flex-direction: column; }
    .btn-large { width: 100%; }
    .cta-container { flex-direction: column; text-align: center; }
    .footer-content { flex-direction: column; gap: 30px; text-align: center; }
    .tester-form-wrapper { padding: 30px 20px; }
}
