html {
    scroll-behavior: smooth;
}

html {
}

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

:root {
    /* Colori Winnita */
    --primary-blue: #1E40AF;
    --primary-green: #10B981;
    --primary-red: #EF4444;
    --secondary-blue: #3B82F6;
    --secondary-green: #34D399;
    --light-blue: #DBEAFE;
    --light-green: #D1FAE5;
    
    /* Colori neutri */
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --gray: #64748B;
    --dark-gray: #334155;
    --black: #0F172A;
    
    /* Ombre */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Transizioni */
    --transition: all 0.3s ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --white: #0F172A;
    --light-gray: #1E293B;
    --gray: #94A3B8;
    --dark-gray: #E2E8F0;
    --black: #F8FAFC;
}

/* Base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin: 0;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: var(--light-gray);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.header-cta {
    background: var(--primary-green) !important;
    color: var(--white) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    border: 2px solid var(--primary-green) !important;
}

.header-cta:hover {
    background: var(--secondary-green) !important;
    border-color: var(--secondary-green) !important;
    transform: translateY(-2px) !important;
}

/* Mobile Alternatives Section */
.mobile-alternatives {
    display: none;
    background: var(--light-green);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.mobile-alternatives h3 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.mobile-alternatives-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.mobile-alt-item {
    background: var(--white);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.mobile-alt-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.mobile-alt-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--light-gray);
    padding: 5px;
}

.mobile-alt-info {
    flex: 1;
}

.mobile-alt-info h4 {
    color: var(--primary-blue);
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.mobile-alt-info p {
    color: var(--gray);
    margin: 0;
    font-size: 0.9rem;
}

.mobile-alt-button {
    background: var(--primary-green);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.mobile-alt-button:hover {
    background: var(--secondary-green);
    transform: translateY(-1px);
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.cta-button.secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green), var(--primary-red));
    color: var(--white);
    padding: 4rem 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="casino" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23casino)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-cards .card {
    position: absolute;
    font-size: 2rem;
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

.floating-cards .card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-cards .card:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 1.5s;
}

.floating-cards .card:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

.floating-cards .card:nth-child(4) {
    top: 40%;
    right: 30%;
    animation-delay: 4.5s;
}

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

/* Main Layout */
.main-wrapper {
    background: var(--light-gray);
    min-height: 100vh;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    padding: 2rem 0;
}

/* Main Content */
.main-content {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-green);
    padding-bottom: 0.5rem;
}

.content-section h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.content-section p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.8;
}

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

/* Content Images */
.content-image {
    margin: 2rem 0;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.content-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* FAQ */
.faq-container {
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-green);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.faq-item h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Final Rating */
.final-rating {
    background: linear-gradient(135deg, var(--light-blue), var(--light-green));
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.final-rating h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.rating-stars {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.rating-box, .alternatives-box, .summary-box {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.rating-box:hover, .alternatives-box:hover, .summary-box:hover {
    box-shadow: var(--shadow-md);
}

/* Rating Box */
.rating-box {
    text-align: center;
    border: 2px solid var(--primary-green);
}

.rating-box h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.rating-score {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.rating-box .rating-stars {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.rating-box p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Alternatives Box */
.alternatives-box {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
}

.alternatives-box h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.alternatives-box > p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.alternative-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.alternative-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.alternative-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--white);
    padding: 5px;
}

.alt-info h4 {
    color: var(--white);
    margin-bottom: 0.25rem;
}

.alt-info p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.alt-button {
    background: var(--white);
    color: var(--primary-green);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.alt-button:hover {
    background: var(--light-gray);
    transform: scale(1.05);
}

/* Summary Box */
.summary-box h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.summary-box ul {
    list-style: none;
}

.summary-box li {
    margin-bottom: 0.5rem;
}

.summary-box a {
    color: var(--dark-gray);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 6px;
    display: block;
    transition: var(--transition);
}

.summary-box a:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: var(--gray);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 2fr 1fr;
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        z-index: 1000;
        gap: 0;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav a {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--light-gray);
        border-radius: 0;
        font-size: 1.1rem;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .header-cta {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Show Mobile Alternatives */
    .mobile-alternatives {
        display: block;
    }
    
    /* Hide Desktop Sidebar Alternatives */
    .alternatives-box {
        display: none;
    }
    
    .header-content {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem 0;
        justify-content: space-between;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .main-content {
        padding: 1.5rem;
        order: 1;
    }
    
    .sidebar {
        order: 2;
        padding: 0 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .floating-cards {
        display: none;
    }
    
    .content-section {
        margin-bottom: 2rem;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .content-section h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .content-image {
        margin: 1.5rem 0;
    }
    
    .alternative-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .alternative-item img {
        width: 60px;
        height: 60px;
    }
    
    .rating-box, .summary-box {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .rating-score {
        font-size: 2.5rem;
    }
    
    .faq-item {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.8rem 0;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .content-section h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    .content-section p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .sidebar {
        padding: 0 1rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
    
    .hero-actions .cta-button {
        width: auto;
        min-width: 200px;
    }
    
    .alternative-item {
        padding: 1rem;
        gap: 0.6rem;
    }
    
    .alternative-item img {
        width: 50px;
        height: 50px;
    }
    
    .alt-info h4 {
        font-size: 1rem;
    }
    
    .alt-info p {
        font-size: 0.85rem;
    }
    
    .alt-button {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .rating-box, .alternatives-box, .summary-box {
        padding: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .rating-score {
        font-size: 2.2rem;
    }
    
    .rating-stars {
        font-size: 1.3rem;
    }
    
    .summary-box ul {
        padding-left: 1rem;
    }
    
    .summary-box li {
        margin-bottom: 0.6rem;
    }
    
    .faq-item {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .faq-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .faq-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .final-rating {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .final-rating h3 {
        font-size: 1.4rem;
    }
    
    .final-rating .rating-stars {
        font-size: 1.5rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .content-section h2 {
        font-size: 1.4rem;
    }
    
    .main-content {
        padding: 0.8rem;
    }
    
    .sidebar {
        padding: 0 0.8rem;
    }
    
    .container {
        padding: 0 8px;
    }
    
    .rating-box, .alternatives-box, .summary-box {
        padding: 1rem;
    }
    
    .alternative-item {
        padding: 0.8rem;
    }
    
    .cta-button {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* Smooth Scrolling */
html {
}

/* Selection */
::selection {
    background: var(--primary-green);
    color: var(--white);
}

/* Focus */
*:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

