/* ========================================
   1x2SportBets - Betrebels Review
   Ottimizzato per Performance e SEO
   Versione: 2.0 - Novembre 2025
   ======================================== */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --accent-color: #1A936F;
    --dark-bg: #1C1C1E;
    --light-bg: #F5F5F7;
    --text-dark: #1D1D1F;
    --text-light: #86868B;
    --white: #FFFFFF;
    --success: #34C759;
    --warning: #FF9500;
    --error: #FF3B30;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.logo span {
    color: var(--primary-color);
}

.logo a:hover {
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 20px;
    opacity: 0.95;
    line-height: 1.5;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.hero-meta span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.rating-stars {
    font-size: 1.5rem;
    color: #FFD700;
}

.rating-score {
    font-size: 1.3rem;
    font-weight: 700;
}

.cta-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.disclaimer-small {
    margin-top: 15px;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Main Content */
.main-content {
    padding: 60px 0;
    background-color: var(--light-bg);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    width: 100%;
    max-width: 100%;
}

.main-column {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Content Sections */
.content-section {
    margin-bottom: 50px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-dark);
}

.content-section ul,
.content-section ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.content-section strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Section Images */
.section-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 20px 0;
    box-shadow: var(--box-shadow);
    display: block;
}

/* TL;DR Section */
.tldr-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.tldr-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.tldr-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: var(--white);
    padding: 15px;
    border-radius: 8px;
}

.tldr-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tldr-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Highlight Boxes */
.highlight-box {
    background-color: #FFF9E6;
    border-left: 5px solid var(--warning);
    padding: 25px;
    margin: 25px 0;
    border-radius: var(--border-radius);
}

.highlight-box h3 {
    margin-top: 0;
    color: var(--text-dark);
}

.info-box {
    background-color: #E6F4FF;
    border-left: 5px solid var(--secondary-color);
    padding: 20px;
    margin: 25px 0;
    border-radius: var(--border-radius);
}

/* Pro/Contro Grid */
.pros-cons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.pros-box {
    background-color: #E8F5E9;
    border-left: 5px solid var(--success);
    padding: 25px;
    border-radius: var(--border-radius);
}

.cons-box {
    background-color: #FFEBEE;
    border-left: 5px solid var(--error);
    padding: 25px;
    border-radius: var(--border-radius);
}

.pros-box h3,
.cons-box h3 {
    margin-top: 0;
}

/* Steps Container */
.steps-container {
    margin: 30px 0;
}

.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Tables */
table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: block;
    overflow-x: auto;
}

thead {
    background-color: var(--secondary-color);
    color: var(--white);
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

tbody tr:hover {
    background-color: var(--light-bg);
}

tbody tr:last-child td {
    border-bottom: none;
}

.table-responsive {
    overflow-x: auto;
    margin: 25px 0;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

/* FAQ */
.faq-container {
    margin: 30px 0;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--box-shadow);
}

.faq-question {
    padding: 20px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    background-color: var(--light-bg);
}

.faq-answer {
    padding: 0 20px 20px 20px;
}

.faq-answer p {
    margin-bottom: 10px;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 40px 0;
}

.final-cta h3 {
    color: var(--white);
    margin-top: 0;
}

.cta-button-large {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 18px 50px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 20px 0;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.sidebar-widget {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.bonus-highlight {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: var(--border-radius);
    color: var(--white);
}

.bonus-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.bonus-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.sidebar-cta {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.sidebar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Rating Breakdown */
.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: var(--light-bg);
    border-radius: 8px;
}

.rating-label {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.rating-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.rating-total {
    background-color: var(--primary-color);
    color: var(--white);
    margin-top: 10px;
}

.rating-total .rating-label,
.rating-total .rating-value {
    color: var(--white);
}

/* Lists */
.pros-list,
.cons-list,
.useful-links {
    list-style: none;
    margin: 0;
}

.pros-list li,
.cons-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.pros-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.cons-list li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: var(--error);
    font-weight: 700;
}

.useful-links li {
    margin-bottom: 10px;
}

.useful-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.useful-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Update Info */
.update-info {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.update-note {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Disclaimer Widget */
.disclaimer-widget {
    background-color: #FFF3CD;
    border-left: 5px solid var(--warning);
}

.disclaimer-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.responsible-gaming {
    text-align: center;
    margin-bottom: 20px;
}

.responsible-gaming p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
}

.support-logos {
    margin: 15px 0;
    font-size: 0.85rem;
}

.support-logos a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.support-logos a:hover {
    text-decoration: underline;
}

.age-restriction {
    font-weight: 700;
    color: var(--warning);
    margin-top: 15px;
}

.copyright {
    text-align: center;
}

.copyright p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.copyright a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.copyright a:hover {
    color: var(--primary-color);
}

.legal-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    max-width: 800px;
    margin: 15px auto 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    html {
        overflow-x: hidden;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        word-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-column {
        padding: 25px 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .content-section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .content-section h2 {
        font-size: 1.6rem;
        word-wrap: break-word;
    }
    
    .content-section h3 {
        font-size: 1.3rem;
        word-wrap: break-word;
    }
    
    .content-section p,
    .content-section li {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
    
    .step-item {
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
    }
    
    .tldr-highlights {
        grid-template-columns: 1fr;
    }
    
    .highlight-box,
    .info-box,
    .pros-box,
    .cons-box {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 20px 15px;
    }
    
    table {
        font-size: 0.85rem;
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    thead, tbody, th, td, tr {
        display: block;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr {
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 10px;
    }
    
    td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }
    
    td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
    }
    
    th, td {
        padding: 8px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .bonus-amount {
        font-size: 2rem;
    }
    
    .main-column {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero,
    .sidebar,
    .footer,
    .cta-button,
    .cta-button-large,
    .sidebar-cta {
        display: none;
    }
    
    .main-content {
        padding: 0;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .main-column {
        box-shadow: none;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth Scrolling */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
