/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #4B0082; /* Viola scuro */
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 300;
}

* {
    box-sizing: border-box;
}

/* Modern styles for headings */
h1, h2 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 1.8rem;
}

/* Header */
header {
    background-color: #4B0082; /* Viola scuro */
    color: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid white;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo img {
    height: 3.5rem;
    width: auto;
    max-width: 200px;
}

.logo a {
    border: none;
}

ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

li {
    margin: 0.5rem 0;
    text-align: left;
    border-bottom: 1px solid white;
    padding-bottom: 0.5rem;
}

a {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    background: #4B0082; /* Viola scuro */
    transition: all 0.3s ease;
    border: 1px solid white;
}

a:hover {
    background: none;
    transform: none;
    box-shadow: none;
    color: white;
}

.active {
    background-color: #4B0082; /* Viola scuro */
}

/* Breadcrumbs */
.breadcrumbs {
    padding-left: 2rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem 2rem;
    background: #4B0082; /* Viola scuro */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Beneficios Section */
.beneficios {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
}

.beneficios-wrapper {
    background-color: #4B0082; /* Viola scuro */
    border-radius: 10px;
    border: 1px solid #cccccc;
    padding-top: 20px;
    padding-right: 25px;
    padding-left: 25px;
    padding-bottom: 20px;
}

.beneficio {
    background-color: #6A0DAD; /* Viola più chiaro */
    color: white;
    border: 1px solid #002244;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 1.1rem;
    line-height: 1.6;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.beneficio:hover {
    background-color: #4B0082; /* Viola scuro */
}

/* FAQ Section */
.faq {
    border: 1px solid white;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.05); /* Slight transparency for depth */
}

.faq h4 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.faq h5 {
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #6A0DAD;
    padding-bottom: 0.25rem;
}

.faq p {
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Forms */
.contact-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.contact-info {
    flex: 1;
    background-color: #4B0082; /* Viola scuro */
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #000000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-info h2 {
    color: white;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-form {
    flex: 1;
    background-color: #4B0082; /* Viola scuro */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #006600;
    box-shadow: 0 0 5px rgba(0, 102, 0, 0.3);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(45deg, #003366, #006600);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem 0;
    background-color: #4B0082; /* Viola scuro */
    border-radius: 10px;
    margin-bottom: 2rem;
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-logo {
    flex: 0 0 auto;
}

.cta-message {
    flex: 1;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.cta-button a {
    background: linear-gradient(45deg, #003366, #006600);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

/* Footer */
footer {
    background-color: #4B0082; /* Viola scuro */
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Slots Grid */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.slot-item {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

.slot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.slot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    position: absolute;
    top: 0;
    left: 0;
}

.slot-item p {
    color: white;
    font-weight: bold;
    margin: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(75, 0, 130, 0.8);
    padding: 0.5rem;
    border-radius: 0 0 15px 15px;
}

.slot-link {
    text-decoration: none;
    display: block;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 4rem;
    }
    .hamburger {
        display: block;
        order: 2;
        padding-bottom: 0.5rem;
    }
    ul {
        display: none;
        position: static;
        width: auto;
        background-color: transparent;
        flex-direction: row;
        justify-content: flex-end;
        margin-top: 0;
        padding: 0;
        box-shadow: none;
        order: 3;
    }
    ul.open {
        display: flex;
        position: absolute;
        top: 6rem;
        right: 0px;
        width: 100%;
        height: auto;
        background-color: #4B0082; /* Viola scuro */
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 10;
    }
    li {
        margin: 0.5rem 0;
        text-align: left;
        border-bottom: 1px solid white;
        padding-bottom: 0.5rem;
    }
    a {
        padding: 0.5rem 1rem;
        background: none;
        box-shadow: none;
        border-radius: 0;
        border: none;
    }
    a:hover {
        background: none;
        transform: none;
        box-shadow: none;
        color: white;
    }
    .logo img {
        height: 2.5rem;
        max-width: 150px;
    }
    .beneficios {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .beneficios-wrapper {
        padding: 1rem;
    }
    main {
        margin-top: 0;
        padding: 1rem;
    }
    .responsive-table, .responsive-table thead, .responsive-table tbody, .responsive-table th, .responsive-table td, .responsive-table tr {
        display: block;
    }
    .responsive-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .responsive-table tr {
        border: 1px solid #ccc;
        margin-bottom: 1rem;
        background: white;
    }
    .responsive-table tr:nth-child(even) {
        background: #6A0DAD; /* Viola chiaro */
    }
    .responsive-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: static;
        padding: 0.75rem 0.5rem;
        text-align: left;
        display: block;
    }
    .responsive-table td:before {
        content: attr(data-label) ": ";
        position: static;
        left: auto;
        width: auto;
        padding-right: 0;
        white-space: normal;
        font-weight: bold;
        color: white;
        display: inline;
    }
    .responsive-table td[data-label="App"]:before,
    .responsive-table td[data-label="Acción"]:before {
        content: none;
    }
    /* Responsive for Contact */
    .contact-container {
        flex-direction: column;
        gap: 1rem;
    }
    .contact-info,
    .contact-form {
        padding: 1rem;
        width: 90%;
        box-sizing: border-box;
    }
    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    .submit-btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    main {
        padding: 0 1rem;
    }
    /* Responsive CTA */
    .cta-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    .cta-message {
        font-size: 1rem;
    }
    .cta-button a {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }
    /* Responsive Slots Grid */
    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .breadcrumbs {
        padding-left: 2rem;
    }
}

/* Game Controls */
#game-wrapper {
    width: 100%;
    margin: 2rem 0;
}

#play-section {
    width: 100%;
    height: 620px;
    text-align: center;
    background: linear-gradient(135deg, #4B0082, #6A0DAD);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

#play-button {
    background-color: #FFD700;
    color: #4B0082;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    width: 400px;
    max-width: 90vw;
}

#game-iframe {
    width: 100%;
    height: 620px;
    background: #000;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    display: none;
}

#game-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 5px;
}

#game-controls {
    width: 100%;
    background: linear-gradient(135deg, #4B0082, #6A0DAD);
    padding: 15px;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 30px;
    border-radius: 0 0 10px 10px;
}

/* Icone SVG per i controlli del gioco */
#game-controls svg {
    width: 40px;
    height: 40px;
    fill: white;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

#game-controls svg:hover {
    fill: #FFD700;
    background: rgba(255,255,255,0.3);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#reload-icon {
    background: rgba(0,0,139,0.4);
    border: 2px solid rgba(255,255,255,0.2);
}

#fullscreen-icon {
    background: rgba(0,77,0,0.4);
    border: 2px solid rgba(255,255,255,0.2);
}

#close-icon {
    background: rgba(255,68,68,0.4);
    border: 2px solid rgba(255,255,255,0.2);
}

#reload-icon:hover {
    background: rgba(0,0,139,0.7);
    border-color: #FFD700;
}

#fullscreen-icon:hover {
    background: rgba(0,77,0,0.7);
    border-color: #FFD700;
}

#close-icon:hover {
    background: rgba(255,68,68,0.7);
    border-color: #FFD700;
}

@media (max-width: 768px) {
    #game-controls {
        padding: 12px !important;
        gap: 25px !important;
    }
    
    #game-controls svg {
        width: 48px !important;
        height: 48px !important;
        padding: 14px !important;
    }
}

@media (max-width: 480px) {
    #game-controls {
        gap: 20px !important;
    }
    
    #game-controls svg {
        width: 56px !important;
        height: 56px !important;
        padding: 16px !important;
    }
}

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #4B0082, #6A0DAD);
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    border-top: 3px solid #FFD700;
}

#cookie-banner.show {
    transform: translateY(0);
}

#cookie-banner .cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

#cookie-banner .cookie-text {
    flex: 1;
    min-width: 300px;
}

#cookie-banner .cookie-text h3 {
    margin: 0 0 0.5rem 0;
    color: #FFD700;
    font-size: 1.2rem;
}

#cookie-banner .cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

#cookie-banner .cookie-text a {
    color: #FFD700;
    text-decoration: underline;
}

#cookie-banner .cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

#cookie-banner button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 120px;
}

#cookie-banner .btn-accept {
    background: #FFD700;
    color: #4B0082;
}

#cookie-banner .btn-accept:hover {
    background: #FFA500;
    transform: translateY(-2px);
}

#cookie-banner .btn-decline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

#cookie-banner .btn-decline:hover {
    background: white;
    color: #4B0082;
}

#cookie-banner .btn-customize {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

#cookie-banner .btn-customize:hover {
    background: rgba(255,255,255,0.2);
}

/* Cookie Preferences Modal */
#cookie-preferences {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

#cookie-preferences.show {
    display: flex;
}

#cookie-preferences .modal {
    background: linear-gradient(135deg, #4B0082, #6A0DAD);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#cookie-preferences .modal h2 {
    color: #FFD700;
    margin-top: 0;
}

#cookie-preferences .cookie-category {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 10px;
    border-left: 4px solid #FFD700;
}

#cookie-preferences .cookie-category h4 {
    margin: 0 0 0.5rem 0;
    color: #FFD700;
}

#cookie-preferences .cookie-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

#cookie-preferences .toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: #ccc;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

#cookie-preferences .toggle-switch.active {
    background: #FFD700;
}

#cookie-preferences .toggle-switch .toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

#cookie-preferences .toggle-switch.active .toggle-slider {
    transform: translateX(30px);
}

#cookie-preferences .modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    #cookie-banner .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    #cookie-banner .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    #cookie-banner button {
        flex: 1;
        min-width: auto;
    }
    
    #cookie-preferences .modal {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    #cookie-preferences .modal-buttons {
        flex-direction: column;
    }
}

/* Footer Link Styles */
a.footer-link {
    color: white;
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    transition: background 0.3s;
    border: none;
}

a.footer-link:hover {
    background: rgba(255,255,255,0.2);
}

/* Guide Items */
.guide-item {
    background: linear-gradient(135deg, #6A0DAD, #4B0082);
    border: 2px solid #FFD700;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.guide-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.guide-content {
    text-align: center;
    color: white;
}

.guide-content h3 {
    color: #FFD700;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.guide-content p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}