/* ================================================================
   SERWIN.CSS - Stili comuni per tutte le pagine web
   Data: 04 Maggio 2026
   Pagine: index.php, bet.php, download.php, legal/*.php
   ================================================================ */

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* BASE */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #000;
    min-height: 100vh;
    position: relative;
    color: #fff;
}

body.centered {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================================================
   SFONDO
   ================================================================ */
.sw-bg {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; z-index: 0;
}
.sw-bg img {
    width: 100%; height: 100%;
    object-fit: cover; position: absolute;
}
.sw-bg-overlay {
    position: absolute; width: 100%; height: 100%;
    background: rgba(0,0,0,0.65);
}
.sw-bg-overlay-dark {
    position: absolute; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
}

/* ================================================================
   LAYOUT CONTENUTO
   ================================================================ */
.sw-content {
    position: relative; z-index: 1;
    width: 100%; max-width: 500px;
    padding: 20px; margin: 20px auto;
}
.sw-content-wide {
    position: relative; z-index: 1;
    width: 100%; max-width: 720px;
    padding: 20px 20px 60px; margin: 0 auto;
}
.sw-content-narrow {
    position: relative; z-index: 1;
    width: 100%; max-width: 440px;
    padding: 20px; margin: 20px auto;
}

/* ================================================================
   CARD
   ================================================================ */
.sw-card {
    background: rgba(0,0,0,0.85);
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.07);
}
.sw-card-legal {
    background: rgba(0,0,0,0.82);
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid rgba(255,255,255,0.07);
}

/* ================================================================
   HEADER / LOGO
   ================================================================ */
.sw-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sw-logo {
    width: 120px; height: 120px;
    margin: 0 auto 12px;
    display: block;
}
.sw-logo-sm {
    width: 70px; height: 70px;
    margin: 0 auto 10px;
    display: block;
}
.sw-logo-xs {
    width: 60px; height: 60px;
}
.sw-logo-text {
    color: #22c55e;
    font-size: 28px; font-weight: 800;
    letter-spacing: 1px; margin-bottom: 4px;
}
.sw-logo-text-lg {
    color: #22c55e;
    font-size: 26px; font-weight: 800;
    letter-spacing: 1px; margin-bottom: 4px;
}
.sw-subtitle {
    color: rgba(255,255,255,0.5);
    font-size: 13px; text-align: center;
}
.sw-logo-wrap {
    text-align: center; margin-bottom: 16px;
}
.sw-logo-wrap .sw-name {
    color: #22c55e; font-size: 22px;
    font-weight: 800; margin-top: 6px;
}

/* ================================================================
   TOP BAR (pagine legal)
   ================================================================ */
.sw-top-bar {
    display: flex; align-items: center;
    padding: 16px 0; margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    gap: 16px;
}
.sw-back-btn {
    background: rgba(34,197,94,0.15);
    border: 1px solid #22c55e;
    color: #22c55e; padding: 8px 14px;
    border-radius: 8px; text-decoration: none;
    font-size: 13px; font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s;
}
.sw-back-btn:hover { background: rgba(34,197,94,0.3); }
.sw-page-title {
    color: #fff; font-size: 17px;
    font-weight: 800; flex: 1; text-align: center;
}
.sw-spacer { width: 80px; }

/* ================================================================
   DOCUMENTO LEGALE
   ================================================================ */
.sw-doc-title {
    color: rgba(255,255,255,0.6);
    font-size: 14px; text-align: center;
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sw-lang-note {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    border-radius: 8px; padding: 10px 14px;
    color: #9ca3af; font-size: 12px;
    text-align: center; margin-bottom: 20px;
}
.sw-last-updated {
    color: rgba(255,255,255,0.4);
    font-size: 11px; margin-bottom: 20px;
    font-style: italic;
}
.sw-card-legal h2 {
    color: #22c55e; font-size: 14px; font-weight: 700;
    margin: 20px 0 8px; padding-bottom: 4px;
    border-bottom: 1px solid rgba(34,197,94,0.2);
}
.sw-card-legal p {
    color: rgba(255,255,255,0.7);
    font-size: 13px; line-height: 1.7; margin-bottom: 12px;
}
.sw-card-legal strong { color: rgba(255,255,255,0.9); }
.sw-card-legal em { color: rgba(255,255,255,0.6); font-style: italic; }
.sw-card-legal a { color: #22c55e; text-decoration: none; }
.sw-card-legal a:hover { text-decoration: underline; }
.sw-card-legal ul { padding-left: 18px; margin-bottom: 12px; }
.sw-card-legal li {
    color: rgba(255,255,255,0.7);
    font-size: 13px; line-height: 1.7;
}
.sw-contact-box {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 10px; padding: 14px;
    margin-top: 24px; text-align: center;
    color: rgba(255,255,255,0.6); font-size: 13px;
}
.sw-warning-box {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 10px; padding: 14px; margin: 16px 0;
}
.sw-warning-box p { color: #ef4444; }

/* ================================================================
   DESCRIZIONE
   ================================================================ */
.sw-description {
    color: rgba(255,255,255,0.75);
    font-size: 14px; line-height: 1.7;
    text-align: center; margin-bottom: 20px;
}

/* ================================================================
   FEATURES LIST
   ================================================================ */
.sw-features {
    background: rgba(255,255,255,0.04);
    border-radius: 12px; padding: 16px;
    margin-bottom: 22px;
    border: 1px solid rgba(255,255,255,0.07);
}
.sw-feature-item {
    color: rgba(255,255,255,0.7);
    font-size: 13px; padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    line-height: 1.4;
}
.sw-feature-item:last-child { border-bottom: none; }

/* ================================================================
   BOTTONI
   ================================================================ */
.sw-btn {
    display: block; width: 100%;
    padding: 15px 20px; border-radius: 12px;
    text-align: center; text-decoration: none;
    font-size: 15px; font-weight: 700;
    transition: all 0.2s; margin-bottom: 10px;
    cursor: pointer; border: none;
}
.sw-btn-primary {
    background: #22c55e; color: #fff;
}
.sw-btn-primary:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34,197,94,0.3);
}
.sw-btn-secondary {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 13px; padding: 12px;
}
.sw-btn-outline {
    background: transparent; color: #22c55e;
    border: 1px solid rgba(34,197,94,0.4);
    font-size: 14px;
}
.sw-btn-outline:hover {
    background: rgba(34,197,94,0.1);
    border-color: #22c55e;
}

/* ================================================================
   AGE WARNING
   ================================================================ */
.sw-age-warning {
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.3);
    border-radius: 10px; padding: 10px 14px;
    text-align: center; margin-bottom: 16px;
    color: #fbbf24; font-size: 12px; font-weight: 600;
}

/* ================================================================
   LEGAL BOX (home)
   ================================================================ */
.sw-legal-box {
    background: rgba(255,255,255,0.03);
    border-radius: 10px; padding: 14px;
    border: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 20px;
}
.sw-legal-title {
    color: rgba(255,255,255,0.6);
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 8px;
}
.sw-legal-text {
    color: rgba(255,255,255,0.4);
    font-size: 11px; line-height: 1.6;
}

/* ================================================================
   DOWNLOAD SECTION
   ================================================================ */
.sw-download-section { margin-bottom: 20px; }
.sw-download-label {
    color: rgba(255,255,255,0.5);
    font-size: 11px; text-transform: uppercase;
    letter-spacing: 1px; text-align: center;
    margin-bottom: 12px;
}

/* ================================================================
   FORM (download page)
   ================================================================ */
.sw-form-label {
    color: rgba(255,255,255,0.7);
    font-size: 14px; margin-bottom: 10px;
    display: block; font-weight: 500;
}
.sw-form-input {
    width: 100%; background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px; padding: 14px 16px;
    color: #fff; font-size: 20px;
    text-align: center; letter-spacing: 8px;
    font-weight: 700; outline: none;
    transition: border-color 0.2s;
}
.sw-form-input:focus { border-color: #22c55e; }
.sw-form-input::placeholder {
    letter-spacing: 2px; font-size: 14px;
    font-weight: 400; color: rgba(255,255,255,0.3);
}
.sw-btn-download {
    width: 100%; background-color: #22c55e;
    border: none; border-radius: 12px;
    padding: 16px; margin-top: 16px;
    color: #fff; font-size: 16px;
    font-weight: 700; cursor: pointer;
    transition: all 0.2s;
}
.sw-btn-download:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34,197,94,0.3);
}
.sw-btn-download:disabled {
    opacity: 0.5; cursor: not-allowed; transform: none;
}
.sw-msg {
    margin-top: 14px; padding: 12px 16px;
    border-radius: 10px; font-size: 13px;
    text-align: center; display: none;
}
.sw-msg-error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444;
}
.sw-msg-success {
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.3);
    color: #22c55e;
}
.sw-note-box {
    margin-top: 20px; padding: 14px 16px;
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.3);
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 12px; line-height: 1.5;
}
.sw-ios-box {
    margin-top: 16px; padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
}
.sw-ios-title {
    color: #fff; font-size: 14px;
    font-weight: 600; margin-bottom: 4px;
}
.sw-ios-text {
    color: rgba(255,255,255,0.5);
    font-size: 12px; line-height: 1.5;
}

/* ================================================================
   BET PAGE
   ================================================================ */
.sw-bet-type-badge {
    font-size: 14px; color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05);
    padding: 6px 16px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}
.sw-avatar {
    width: 70px; height: 70px; border-radius: 35px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex; justify-content: center; align-items: center;
    border: 3px solid #22c55e; margin: 0 auto 10px;
}
.sw-avatar-text { color: #fff; font-size: 28px; font-weight: 700; }
.sw-username {
    font-size: 20px; font-weight: 700;
    color: #fff; text-align: center; margin-bottom: 4px;
}
.sw-user-date {
    font-size: 13px; color: rgba(255,255,255,0.6);
    text-align: center; margin-bottom: 12px;
}
.sw-quota-box {
    background: rgba(34,197,94,0.1);
    border-radius: 10px; padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(34,197,94,0.3);
    text-align: center;
}
.sw-quota-label {
    color: rgba(255,255,255,0.6);
    font-size: 14px; margin-bottom: 5px;
}
.sw-quota-value {
    color: #22c55e; font-size: 32px; font-weight: bold;
}
.sw-system-box {
    background: linear-gradient(145deg, rgba(59,130,246,0.15), rgba(37,99,235,0.25));
    border-radius: 12px; padding: 18px 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(59,130,246,0.4);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.sw-system-badge {
    background: #3b82f6; color: #fff;
    font-size: 12px; font-weight: 700;
    padding: 4px 10px; border-radius: 20px;
}
.sw-section-title {
    color: #22c55e; font-size: 16px;
    font-weight: 700; margin-bottom: 12px;
}
.sw-match-card {
    background: rgba(255,255,255,0.03);
    border-radius: 12px; padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}
.sw-match-title {
    color: #fff; font-size: 15px; font-weight: 600;
    margin-bottom: 10px; padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sw-market-type { color: #3b82f6; font-size: 13px; font-weight: 500; }
.sw-market-selection { color: #22c55e; font-size: 13px; font-weight: 600; }
.sw-odds-badge {
    color: #fff; font-size: 14px; font-weight: 600;
    background: rgba(255,255,255,0.05);
    padding: 4px 10px; border-radius: 6px;
}
.sw-cta-btn {
    background: #22c55e; padding: 16px 20px;
    border-radius: 10px; text-align: center;
    margin-top: 20px; text-decoration: none;
    display: block; transition: all 0.2s;
    color: #fff; font-size: 16px; font-weight: 700;
}
.sw-cta-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34,197,94,0.3);
}
.sw-error-box {
    background: rgba(239,68,68,0.1);
    border-radius: 10px; padding: 30px;
    text-align: center;
    border: 1px solid rgba(239,68,68,0.3);
}
.sw-error-title {
    color: #ef4444; font-size: 20px;
    font-weight: bold; margin-bottom: 10px;
}
.sw-error-text {
    color: rgba(255,255,255,0.7); margin-bottom: 20px;
}
.sw-error-btn {
    background: #22c55e; padding: 12px 25px;
    border-radius: 8px; text-decoration: none;
    color: #fff; display: inline-block; font-weight: 600;
}

/* ================================================================
   FOOTER
   ================================================================ */
.sw-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}
.sw-footer-links {
    display: flex; justify-content: center;
    flex-wrap: wrap; gap: 4px 12px;
    margin-bottom: 10px;
}
.sw-footer-links a {
    color: rgba(255,255,255,0.4);
    font-size: 11px; text-decoration: none;
    transition: color 0.2s;
}
.sw-footer-links a:hover { color: #22c55e; }
.sw-footer-text {
    color: rgba(255,255,255,0.25); font-size: 10px;
}
.sw-page-footer {
    color: rgba(255,255,255,0.3);
    font-size: 11px; text-align: center;
    margin-top: 24px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 480px) {
    .sw-card { padding: 20px 16px; }
    .sw-card-legal { padding: 18px 14px; }
    .sw-logo-text { font-size: 24px; }
    .sw-spacer { width: 40px; }
    .sw-logo { width: 90px; height: 90px; }
}

@media (min-width: 768px) {
    .sw-content { max-width: 540px; }
}

/* ================================================================
   TEMA CHIARO (sistema)
   ================================================================ */
@media (prefers-color-scheme: light) {
    .sw-bg-overlay { background: rgba(0,0,0,0.5); }
    .sw-bg-overlay-dark { background: rgba(0,0,0,0.6); }
}

/* ================================================================
   FOOTER LEGALE GLOBALE
   ================================================================ */
.sw-legal-footer {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.sw-legal-footer-links {
    display: flex; justify-content: center;
    flex-wrap: wrap; gap: 6px 14px;
    margin-bottom: 8px;
}
.sw-legal-footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 12px; text-decoration: none;
    transition: color 0.2s;
}
.sw-legal-footer-links a:hover { color: #22c55e; }
.sw-legal-footer-copy {
    color: rgba(255,255,255,0.3);
    font-size: 11px;
}

/* ================================================================
   CORREZIONE TOP BAR NELLE PAGINE LEGAL
   ================================================================ */
.sw-card-legal .sw-top-bar {
    padding-top: 0;
    margin-bottom: 20px;
}