/* CSS migliorato per il sito Casino Non AAMS */
:root {
    --primary-color: #4e2ac9;
    --secondary-color: #ffb700;
    --dark-blue: #1a1a40;
    --light-blue: #e8eaf6;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    --card-shadow: 0 15px 35px rgba(0,0,0,0.1);
    --text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background-color: #f9f9f9;
    font-size: 16px;
}

.container {
    padding: 0 25px;
}

/* Header migliorato */
header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-color) 100%);
    color: white;
    padding: 60px 0 50px;
    border-radius: 0 0 30px 30px;
    margin-bottom: 50px;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/header-pattern.png');
    opacity: 0.15;
    z-index: 0;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% {opacity: 0.1;}
    100% {opacity: 0.2;}
}

.header-content {
    position: relative;
    z-index: 1;
    padding: 0 30px;
}

h1 {
    color: white;
    font-size: 3em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: var(--text-shadow);
    letter-spacing: -0.5px;
}

h2 {
    color: var(--dark-blue);
    font-size: 2.2em;
    margin-top: 60px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--light-blue);
    position: relative;
    font-weight: 700;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

h2:hover::after {
    width: 150px;
}

h3 {
    color: var(--primary-color);
    font-size: 1.7em;
    margin-top: 35px;
    font-weight: 700;
    position: relative;
    padding-left: 15px;
}

h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: var(--secondary-color);
    border-radius: 3px;
}

h4 {
    font-size: 1.4em;
    color: var(--dark);
    margin-top: 30px;
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

a:hover {
    text-decoration: none;
    color: var(--secondary-color);
}

a.content-link:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

a.content-link:hover:after {
    width: 100%;
}

.article-meta {
    color: rgba(255,255,255,0.95);
    text-align: center;
    margin-bottom: 5px;
    font-size: 1.15em;
    background-color: rgba(0,0,0,0.2);
    display: inline-block;
    padding: 8px 15px;
    border-radius: 50px;
    margin: 0 auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 30px 0;
    box-shadow: var(--box-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

img:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Stili migliorati per i bottoni */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: var(--transition);
    margin: 20px 0;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: all 0.6s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6a3de8 100%);
    color: white !important;
    box-shadow: 0 6px 20px rgba(78, 42, 201, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6a3de8 0%, var(--primary-color) 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(78, 42, 201, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #1f9d3a 100%);
    color: white !important;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1f9d3a 0%, var(--success) 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}

/* Miglioramento indice dei contenuti */
.table-of-contents {
    background: linear-gradient(135deg, #f5f7ff 0%, var(--light-blue) 100%);
    border-radius: var(--border-radius);
    padding: 30px 35px;
    margin: 40px 0;
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--secondary-color);
}

.table-of-contents h3 {
    margin-top: 0;
    padding-left: 0;
}

.table-of-contents h3::before {
    display: none;
}

.table-of-contents ol {
    padding-left: 25px;
    counter-reset: item;
}

.table-of-contents ol li {
    margin-bottom: 12px;
    position: relative;
    list-style-type: none;
    counter-increment: item;
}

.table-of-contents ol li:before {
    content: counter(item);
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
    font-size: 0.8em;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.table-of-contents a {
    color: var(--dark-blue);
    transition: var(--transition);
    display: inline-block;
}

.table-of-contents a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.anchor-link {
    display: block;
    position: relative;
    top: -100px;
    visibility: hidden;
}

/* Stili per le card dei casinò */
.casino-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.casino-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.casino-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, transparent 50%, rgba(78, 42, 201, 0.05) 50%);
    z-index: 0;
}

.casino-rating {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.stars {
    color: var(--secondary-color);
    font-size: 1.3em;
    margin-right: 10px;
}

.score {
    font-weight: bold;
    color: var(--dark);
    font-size: 1.1em;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85em;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
}

.badge-primary {
    background-color: rgba(78, 42, 201, 0.1);
    color: var(--primary-color);
}

.badge-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.badge-secondary {
    background-color: rgba(255, 183, 0, 0.1);
    color: var(--secondary-color);
}

.casino-feature {
    margin: 25px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

.casino-feature h4 {
    margin-top: 0;
    color: var(--dark-blue);
}

.feature-list {
    padding-left: 20px;
    margin-bottom: 0;
}

.feature-list li {
    margin-bottom: 8px;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    position: absolute;
    left: -20px;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.payment-method {
    background-color: #f5f5f5;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9em;
    color: var(--dark);
    border: 1px solid #e0e0e0;
}

.casino-footer {
    margin-top: 25px;
    text-align: center;
}

/* Alert boxes */
.alert {
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.alert h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.alert-primary {
    background-color: rgba(78, 42, 201, 0.05);
    border-left: 5px solid var(--primary-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.05);
    border-left: 5px solid var(--warning);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.05);
    border-left: 5px solid var(--danger);
}

/* Info boxes */
.info-box {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px 0;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.info-box h4 {
    color: var(--primary-color);
    margin-top: 0;
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Stat boxes */
.stat-box {
    text-align: center;
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
}

.stat-label {
    font-size: 1.1em;
    color: var(--dark);
    margin-bottom: 5px;
    font-weight: 600;
}

/* Flex grid */
.flex-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.flex-col-1-3 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
    margin-bottom: 30px;
}

/* Tabelle */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    font-size: 1em;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6a3de8 100%);
    color: white;
    text-align: left;
}

th, td {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

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

tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

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

/* Bonus tag */
.bonus-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 183, 0, 0.3);
}

/* Highlight box */
.highlight-box {
    background: linear-gradient(135deg, #f5f7ff 0%, var(--light-blue) 100%);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--primary-color);
}

.highlight-box h4 {
    color: var(--primary-color);
    margin-top: 0;
}

/* Pros and Cons */
.pros-cons {
    display: flex;
    flex-wrap: wrap;
    margin: 30px 0;
    gap: 30px;
}

.pros, .cons {
    flex: 1;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.pros {
    background-color: rgba(40, 167, 69, 0.05);
    border-top: 5px solid var(--success);
}

.cons {
    background-color: rgba(220, 53, 69, 0.05);
    border-top: 5px solid var(--danger);
}

.pros h4, .cons h4 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.pros h4 {
    color: var(--success);
}

.cons h4 {
    color: var(--danger);
}

/* Progress bar */
.progress {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6a3de8 100%);
    border-radius: 50px;
}

/* Steps list */
.steps-list {
    counter-reset: steps;
    padding-left: 0;
    list-style: none;
}

.steps-list li {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
    counter-increment: steps;
}

.steps-list li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 5px 15px rgba(78, 42, 201, 0.3);
}

.steps-list h4 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Navigazione principale */
.main-nav {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    position: sticky;
    top: 20px;
    z-index: 100;
}

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

.logo {
    padding: 15px 0;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin: 0 10px 0 0;
    box-shadow: none;
}

.logo:hover img {
    transform: none;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: block;
    padding: 25px 15px;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
}

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

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

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background-color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--dark);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    font-size: 0.9em;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 10px;
    color: #999;
}

.breadcrumb a {
    color: var(--dark);
    font-weight: 500;
}

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

.breadcrumb li:last-child a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-color) 100%);
    color: white;
    padding: 60px 0 40px;
    margin-top: 80px;
    border-radius: 30px 30px 0 0;
    position: relative;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-column h4 {
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2em;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Sidebar */
.sidebar {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.sidebar h4 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-blue);
    position: relative;
}

.sidebar h4::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.sidebar-casino {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.sidebar-casino:last-child {
    border-bottom: none;
}

.sidebar-casino img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin: 0 15px 0 0;
}

.sidebar-casino-info h5 {
    margin: 0 0 5px 0;
    font-size: 1em;
}

.sidebar-casino-info .stars {
    font-size: 0.9em;
    margin-bottom: 5px;
}

.sidebar-casino-info .btn {
    padding: 5px 10px;
    font-size: 0.8em;
    margin: 5px 0 0 0;
}

/* Layout a due colonne */
.two-column-layout {
    display: flex;
    gap: 30px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.side-content {
    width: 300px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .flex-col-1-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .two-column-layout {
        flex-direction: column;
    }
    
    .side-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.3em;
    }
    
    h2 {
        font-size: 1.9em;
    }
    
    h3 {
        font-size: 1.5em;
    }
    
    .flex-col-1-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .pros-cons {
        flex-direction: column;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .nav-container {
        flex-direction: column;
        position: relative;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 15px;
        border-top: 1px solid #eee;
    }
    
    .footer-column {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 40px 0 30px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .casino-card {
        padding: 20px;
    }
    
    .payment-methods {
        justify-content: center;
    }
}

/* Animazioni */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.casino-card {
    animation: fadeIn 0.6s ease-out forwards;
}

.casino-card:nth-child(2) {
    animation-delay: 0.2s;
}

.casino-card:nth-child(3) {
    animation-delay: 0.4s;
}

.casino-card:nth-child(4) {
    animation-delay: 0.6s;
}

.casino-card:nth-child(5) {
    animation-delay: 0.8s;
}

/* Aggiunta di un effetto hover sulle immagini dei casinò */
.casino-card img {
    transition: transform 0.5s ease, filter 0.5s ease;
}

.casino-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* Aggiunta di uno script per aggiornare la data corrente */
#current-date {
    font-weight: 600;
}
