/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #1a1a2e;
    line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: #1a1a2e;
    padding: 12px 0;
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: #ffffff;
}

.navbar .nav-link:hover,
.navbar .navbar-brand:hover {
    color: #f8f9fa;
}

.navbar .navbar-nav {
    gap: 10px;
}

.navbar .nav-link.nav-btn {
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    background-color: #22c55e;
    border: none;
    transition: background-color 0.2s ease;
}

.navbar .nav-link.nav-btn:hover {
    background-color: #16a34a;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        gap: 8px;
        padding-top: 10px;
    }
    .navbar .nav-link.nav-btn {
        display: inline-flex;
        justify-content: center;
        width: 100%;
    }
}

/* ===== BUTTONS ===== */
.btn-primary {
    background-color: #1a1a2e;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    color: #fff;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #2d2d4a;
}

.btn-secondary {
    background-color: #eab308;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    color: #1a1a2e;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: #ca9a07;
}

.btn-register {
    display: inline-block;
    min-width: 180px;
    padding: 14px 28px;
    background-color: #22c55e;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-register:hover {
    background-color: #16a34a;
    color: #fff;
}

.btn-center {
    width: 100%;
    text-align: center;
    margin: 20px 0;
}

/* ===== MAIN CONTENT ===== */
main {
    color: #1a1a2e;
}

h1 {
    font-size: 32px;
    text-align: center;
    margin: 20px 0;
    color: #1a1a2e;
    font-weight: 700;
}

h2 {
    font-size: 26px;
    margin: 18px 0;
    color: #1a1a2e;
    font-weight: 700;
}

h3 {
    font-size: 22px;
    margin: 16px 0;
    color: #1a1a2e;
    font-weight: 600;
}

p {
    margin-bottom: 16px;
    line-height: 1.7;
}

/* ===== BLOCK SECTIONS ===== */
.block-section {
    width: 100%;
    padding: 40px 20px;
}

.block-section:nth-child(odd) {
    background-color: #ffffff;
}

.block-section:nth-child(even) {
    background-color: #f8f9fa;
}

.block-section .container-inner {
    max-width: 980px;
    margin: 0 auto;
}

.block {
    padding: 22px;
    margin: 18px 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* ===== IMAGES ===== */
.img-box {
    max-width: 760px;
    margin: 18px auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.img-box img {
    width: 100%;
    height: auto;
    display: block;
}

main img {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
    margin: 18px auto;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

@media (max-width: 600px) {
    main img {
        max-width: 100%;
        border-radius: 12px;
    }
}

/* ===== LISTS ===== */
ul, ol {
    margin: 16px 0;
    padding-left: 24px;
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ===== TABLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    text-align: left;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
}

th {
    font-weight: 700;
    background-color: #1a1a2e;
    color: #fff;
}

td {
    background-color: #fff;
}

tr:hover td {
    background-color: #f8f9fa;
}

caption {
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    text-align: center;
}

/* ===== GLOW TABLE ===== */
.table-glow {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a2e;
    border: 2px solid #22c55e;
    border-radius: 12px;
    overflow: hidden;
    table-layout: fixed;
    animation: tableBreathGreen 3.8s ease-in-out infinite;
}

@keyframes tableBreathGreen {
    0% {
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.4), 0 0 22px rgba(255, 255, 255, 0.25);
    }
    50% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.9), 0 0 45px rgba(255, 255, 255, 0.7), 0 0 70px rgba(34, 197, 94, 0.6);
    }
    100% {
        box-shadow: 0 0 10px rgba(34, 197, 94, 0.4), 0 0 22px rgba(255, 255, 255, 0.25);
    }
}

.table-glow th {
    background: rgba(34, 197, 94, 0.2);
    padding: 12px 15px;
    font-weight: 700;
    color: #1a1a2e;
    border-bottom: 1px solid rgba(34, 197, 94, 0.4);
}

.table-glow td {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(34, 197, 94, 0.25);
    color: #1a1a2e;
}

.table-glow tr:last-child td {
    border-bottom: none;
}

.table-glow tr:hover td {
    background: rgba(34, 197, 94, 0.15);
    transition: 0.25s ease;
}

@media (max-width: 768px) {
    .table-glow {
        font-size: 13px;
    }
    .table-glow th,
    .table-glow td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .table-glow {
        font-size: 11px;
    }
    .table-glow th,
    .table-glow td {
        padding: 6px 8px;
    }
}

/* ===== CASINO CARDS ===== */
.casino-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.casino-card h3 {
    color: #1a1a2e;
    margin-bottom: 16px;
}

.casino-card .pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 16px 0;
}

@media (max-width: 768px) {
    .casino-card .pros-cons {
        grid-template-columns: 1fr;
    }
}

.casino-card .pros li {
    color: #16a34a;
}

.casino-card .cons li {
    color: #dc2626;
}

/* ===== SCHEDA TECNICA ===== */
.scheda-tecnica {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.scheda-tecnica h4 {
    margin-bottom: 16px;
    color: #1a1a2e;
}

.scheda-tecnica table {
    margin: 0;
    box-shadow: none;
}

/* ===== TOC ===== */
.toc-toggle {
    display: inline-block;
    background-color: #1a1a2e;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 10px;
    transition: background-color 0.2s ease;
}

.toc-toggle:hover {
    background-color: #2d2d4a;
}

.toc {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.toc.is-collapsed {
    max-height: 0;
    padding: 0;
    overflow: hidden;
    border: none;
    margin: 0;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
}

@media (max-width: 768px) {
    .toc ul {
        columns: 1;
    }
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.toc a:hover {
    color: #22c55e;
}

/* ===== BACK TO TOP ===== */
.toc-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #22c55e;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.toc-back-top:hover {
    background-color: #16a34a;
}

/* ===== FAQ ===== */
.faq-section {
    margin: 40px 0;
    padding: 30px 0;
}

.faq-title {
    text-align: center;
    margin-bottom: 40px;
    color: #1a1a2e;
    font-size: 32px;
    font-weight: bold;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-question {
    width: 100%;
    background: #1a1a2e;
    color: #fff;
    padding: 18px 20px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background: #2d2d4a;
}

.faq-icon {
    font-size: 20px;
    color: #22c55e;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

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

.faq-answer p {
    margin: 0;
    color: #1a1a2e;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 15px;
        font-size: 15px;
    }
    .faq-answer div {
        padding: 15px;
    }
}

/* ===== REVIEWS ===== */
.review-item {
    background: #f8f9fa;
    border-left: 4px solid #22c55e;
    padding: 16px 20px;
    margin: 12px 0;
    border-radius: 0 8px 8px 0;
}

.review-item strong {
    color: #1a1a2e;
}

.review-date {
    color: #6b7280;
    font-size: 13px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #1a1a2e;
    color: #fff;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo .logo-img {
    max-height: 40px;
}

.footer-logo .age-badge {
    background: #dc2626;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #22c55e;
}

.footer-warning {
    background: rgba(220, 38, 38, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-warning p {
    margin: 5px 0;
    font-size: 14px;
    color: #fca5a5;
}

.footer-copy p {
    color: #6b7280;
    font-size: 13px;
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 26px;
    }
    h2 {
        font-size: 22px;
    }
    h3 {
        font-size: 18px;
    }
    .block-section {
        padding: 30px 15px;
    }
    .footer-links a {
        display: block;
        margin: 10px 0;
    }
}

/* ===== TABLE RESPONSIVE ===== */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

@media (max-width: 768px) {
    table {
        font-size: 12px;
    }
    th, td {
        padding: 8px 10px;
    }
}
