/* ============================================================
   LUNGAROTTI WINECLUB — site.css
   Classi comuni a tutte le pagine
   ============================================================ */

/* ── Variabili brand ─────────────────────────────────────── */
:root {
    --wine-dark:    #8B0000;
    --wine-mid:     #C41E3A;
    --wine-shadow:  rgba(139, 0, 0, 0.3);
}

/* ── Base ────────────────────────────────────────────────── */
body {
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ── Card contenitore ────────────────────────────────────── */
.wine-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ── Logo ────────────────────────────────────────────────── */
.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 90%;
    max-width: 250px;
    margin: 0 auto 1rem;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 48px;
    color: var(--wine-dark);
    font-weight: bold;
    text-align: center;
}

/* ── Selettore lingua ────────────────────────────────────── */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.language-selector select {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #333;
}

.language-selector select:focus {
    outline: none;
}

/* ── Bottoni ─────────────────────────────────────────────── */
.btn-wine {
    display: inline-block;
    background: linear-gradient(135deg, var(--wine-dark) 0%, var(--wine-mid) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-wine:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--wine-shadow);
}

.btn-wine:active {
    transform: translateY(0);
}

.btn-wine:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Dimensioni specifiche per contesti diversi */
.btn-wine-lg {
    padding: 16px 50px;
    font-size: 18px;
}

.btn-wine-md {
    padding: 12px 30px;
    font-size: 16px;
}

.btn-wine-full {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    text-align: center;
}

/* ── Campi form ──────────────────────────────────────────── */
.input-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-field label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.input-field input,
.input-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.input-field input:focus,
.input-field select:focus {
    outline: none;
    border-color: var(--wine-dark);
    background: white;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.error-message {
    color: #d32f2f;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

/* ── Checkbox ────────────────────────────────────────────── */
.checkbox-group {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: var(--wine-dark);
    flex-shrink: 0;
}

.checkbox-label span {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-label a {
    color: var(--wine-dark);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ── Elementi form accessori ─────────────────────────────── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.divider {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin: 1.5rem 0;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.info-box {
    background: #f0f4ff;
    border-left: 4px solid var(--wine-dark);
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

/* ── Pagina Conferma registrazione ───────────────────────── */
.success-icon {
    animation: wc-checkmark 0.5s ease-out;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--wine-dark) 0%, var(--wine-mid) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

@keyframes wc-checkmark {
    0%   { transform: scale(0); }
    50%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.welcome-title {
    color: var(--wine-dark);
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.welcome-subtitle {
    color: #666;
    font-size: 18px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.benefit-item {
    background: #f8f8f8;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--wine-dark);
}

.benefit-item strong {
    color: var(--wine-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.email-validation-box {
    background: #f0f4ff;
    border-left: 4px solid var(--wine-dark);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.email-validation-box h3 {
    color: var(--wine-dark);
    margin-top: 0;
    font-size: 16px;
}

.email-validation-box p {
    color: #666;
    font-size: 14px;
    margin: 0.5rem 0;
}

/* ── Pagina Email Validata ────────────────────────────────── */
.checkmark-animated {
    animation: wc-checkmark 0.5s ease-out;
}

/* ── Home ────────────────────────────────────────────────── */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

.hero-content h1 {
    color: var(--wine-dark);
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-content p {
    color: #ddd;
    font-size: 20px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.footer-fixed {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: #999;
    font-size: 12px;
}

.footer-text {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .language-selector {
        position: static;
        margin-bottom: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .btn-wine-lg {
        padding: 14px 40px;
        font-size: 16px;
    }
}
