/* Global Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-image: url('https://cdn.quigioco.it/external_cms/QUIGIOCO/spinny/img/bg2.jpg');
    background-size: cover;
    background-position: center top;
    padding: 50px 5% 50px;
}

.hero-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    padding-right: 20px;
}

.label-img {
    display: block;
    margin-bottom: 20px;
    max-width: 300px;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    font-weight: 800;
}

.hero-text .subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
    color: #d1d1d1;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-text .minititle {
    font-size: 0.8rem;
    margin-top: 20px;
    margin-bottom: 40px;
    color: #d1d1d1;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background-color: #d20a26;
    border: 2px solid #d20a26 !important;
    color: #fff !important;
    /* Ensure override */
    padding: 15px 40px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(210, 10, 38, 0.4);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

.cta-button2 {
    display: inline-block;
    background-color: #d20a2500;
    color: #fff !important;
    border: 2px solid #d20a26 !important;
    padding: 15px 40px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(210, 10, 38, 0.4);
    font-family: 'Montserrat', sans-serif;

    letter-spacing: 0.5px;
}

.cta-button3 {
    display: inline-block;
    background-color: #111c50;
    color: #fff !important;
    border: 2px solid #384476 !important;
    padding: 15px 40px;
    border-radius: 10px;
    font-weight: 700;
    margin: 5px;
    font-size: 1rem;

    font-family: 'Montserrat', sans-serif;

    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 10, 38, 0.6);
    background-color: #f00b2b;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.1));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: #041047;
    position: relative;
    z-index: 10;
}

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

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-item img {
    height: 104px;
    /* Aumentato del 30% da 80px */
    margin-bottom: 20px;
}

.feature-item h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #fff;
}

.feature-item p {
    font-size: 0.95rem;
    color: #aaa;
}

/* Promo Row Special Styling */
.promo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    text-align: left;
}

.promo-row h3 {
    margin-bottom: 0;
    margin-left: 20px;
    flex-grow: 1;
}

.promo-row img {
    margin-bottom: 0;
    width: auto;
}

/* Info Section */
.info-section {
    padding: 60px 20px;
    text-align: left;
    color: #041047;
    background-color: #ffffff;
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: flex-start;
}

.info-left {
    flex: 1;
    min-width: 300px;
    padding-top: 20px;
}

.info-left h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #041047;
}

.info-left p {
    color: #333;
    margin-bottom: 30px;
}

.consapevolezza-list {
    list-style: none;
    padding: 0;
}

.consapevolezza-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 500;
    color: #041047;
}

.consapevolezza-list li img {
    width: 25px;
    height: auto;
    margin-right: 15px;
    filter: hue-rotate(150deg);
    /* Adjust color to green if needed */
}

.info-right-card {
    margin-top: 20px;
    flex: 1;
    min-width: 300px;
    border: 1px solid #111c50;
    border-radius: 15px;
    padding: 30px;
    background-color: #fff;
}

.regulatory-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.regulatory-logos img {
    max-height: 40px;
    width: auto;
}

.info-right-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #041047;
}

.info-right-card p {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 20px;
}

.info-link {
    color: #6676cc;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.arrow-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid #6676cc;
    border-radius: 50%;
    margin-left: 10px;
    font-size: 0.8rem;
    line-height: 1;
}

/* Footer */
footer {
    padding: 40px 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #222;
}

/* Ticker Section */
.ticker-section {
    padding: 40px 0;
    background-color: #041047;
    /* Blue like the rest of the site */
    overflow: hidden;

}

.ticker-carousel {
    width: 100%;
}

.ticker-cell {
    width: 250px;
    margin-right: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticker-cell img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

/* "Cosa mi puoi Chiedere" Section */
.cosa-mi-puoi-chiedere-section {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.cosa-mi-puoi-chiedere-section .section-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #444;
    text-align: center;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.cosa-mi-puoi-chiedere-section .section-subtitle {
    font-size: 1.75rem;
    color: #666;
    text-align: center;
    margin-bottom: 60px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.cosa-carousel {
    width: 100%;
}

.cosa-cell {
    width: 33.333%;
    padding: 0 15px;
    display: flex;
    justify-content: center;
}

.cosa-cell img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Flickity Customization */
.flickity-page-dots {
    bottom: -40px;
}

.flickity-page-dots .dot {
    background: #041047;
    width: 10px;
    height: 10px;
    opacity: 0.3;
}

.flickity-page-dots .dot.is-selected {
    opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .cosa-cell {
        width: 50%;
    }

    .cosa-mi-puoi-chiedere-section .section-title {
        font-size: 2.5rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 60px;
        /* Reduced from 120px to remove gap */
    }

    .hero-text {
        padding-right: 0;
        margin-top: 20px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .label-img {
        margin: 0 auto 20px;
    }
}

@media (max-width: 600px) {
    .hero-section {
        background-image: url('https://cdn.quigioco.it/external_cms/QUIGIOCO/spinny/img/bgmob2.jpg');
        background-position: center top;
        padding: 40px 20px 40px;
        /* Reduced top padding from 100px */
        min-height: auto;
        display: block;
    }

    .cosa-cell {
        width: 100%;
    }

    .ticker-cell {
        width: 280px;
        /* Made larger as requested */
        margin-right: 30px;
    }

    .cosa-mi-puoi-chiedere-section .section-title {
        font-size: 2rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        padding-top: 20px;
    }

    .landing-logo {
        max-width: 150px;
    }

    .hero-text {
        text-align: center;
        padding-right: 0;
        margin-top: 30px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 0;
    }

    .cta-button,
    .cta-button2 {
        display: block;
        width: 100%;
        margin: 10px 0;
        text-align: center;
    }

    .features-section {
        padding: 60px 20px;
        /* Fix side padding */
    }

    .promo-row {
        flex-direction: column;
        text-align: center;
        margin-top: 30px;
    }

    .promo-row h3 {
        margin: 20px 0;
        margin-left: 0;
    }

    .promo-row .cta-button3 {
        width: 100%;
        display: block;
        margin: 0;
    }

    .info-section {
        padding: 40px 20px;
    }

    .info-grid {
        flex-direction: column;
        gap: 30px;
    }

    .info-right-card {
        margin-top: 0;
        /* Reset margin since we have gap */
        width: 100%;
    }

    .regulatory-logos {
        justify-content: center;
    }
}

/*CSS SPINNY*/
:root {
    --primary-gradient: var(--primary-color);
    --chat-width: 450px;
    --chat-height: 520px;
    --header-height: 56px;
    --border-radius: 16px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#chatbot-popup {
    display: none;
    position: fixed;
    bottom: 120px;
    right: 32px;
    width: var(--chat-width);
    height: var(--chat-height);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 18px 40px -5px rgba(0, 0, 0, 0.2), 0 15px 20px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    transform-origin: bottom right;
    transform: scale(0.95);
    transition: all var(--transition-speed) ease-in-out;
    z-index: 999;
}

#chatbot-popup.visible {
    display: block;
    opacity: 1;
    transform: scale(1);
}

#chatbot-header {
    background: var(--primary-color);
    padding: 16px 20px;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--header-textColor);
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
}

.header-main-title strong {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.header-title .chat-icon-image {
    width: 28px;
    height: 28px;
}

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-button {
    background: none;
    border: none;
    color: var(--header-textColor);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

#webchat {
    height: calc(100% - var(--header-height));
    background-color: #f9fafb;
    position: relative;
}

#chat-toggle-button {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease-in-out;
    z-index: 1000;
}

#chat-toggle-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

#chat-toggle-button img,
#chat-toggle-button svg {
    position: absolute;
    width: 40px;
    height: 40px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#chat-toggle-button .close-icon {
    opacity: 0;
    transform: rotate(-90deg);
    color: white;
}

#chat-toggle-button .open-icon {
    opacity: 1;
    transform: rotate(0deg);
}

#chat-toggle-button.chat-open .close-icon {
    opacity: 1;
    transform: rotate(0deg);
}

#chat-toggle-button.chat-open .open-icon {
    opacity: 0;
    transform: rotate(90deg);
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    #chatbot-popup {
        width: 100%;
        height: calc(100% - 120px);
        bottom: 120px;
        right: 0;
        border-radius: 0;
    }
}

/*MODIFICHE SPINNY*/
.header-title .chat-icon-image {
    width: 36px !important;
    height: 38px !important;
}

div#chatbot-header {
    background: #002143 !important;
    color: #fff !important;
}

div#webchat {
    color: #000000 !important;
}

.webchat__text-content.webchat__text-content--is-markdown.webchat--css-juqzi-1gi36dr {
    color: #000000 !important;
}



.p.webchat__text-content.webchat__text-content--is-plain.webchat--css-juqzi-1gi36dr {
    color: #4d4d4d !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.webchat__render-markdown * {
    color: #4d4d4d !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.webchat__bubble__content * {
    color: #4d4d4d !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

#chat-toggle-button {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 105px !important;
    height: 105px !important;
    border-radius: 50%;
    background: var(--primary-gradient);
    /* border: none; */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: unset !important;
    transition: all var(--transition-speed) ease-in-out;
    z-index: 1000;
}



#webchat {
    position: relative !important;
    overflow: visible !important;
}

svg.close-icon {
    display: none !important;
}

div#custom-initial-buttons {
    position: sticky !important;
    top: 2px !important;
    right: 9px !important;
    gap: 2px !important;
    flex-wrap: nowrap !important;
}



.webchat__send-box__main {
    width: 100% !important;
    background: #e8e9eb !important;
    border: unset !important;
    align-items: center !important;
    margin-right: 10px !important;
}

.webchat__send-box__main input {
    background: #fff !important;
    padding: 10px !important;
    Border-radius: 5px !important;
    padding-left: 15px !important;
}

#spinny-wrapper {
    z-index: 99999999 !important;
}

#spinny-wrapper button:focus {
    outline: unset !important;
}



}

body:has(#singleGameContainer) #spinny-wrapper {
    display: none !important;
}

#chat-toggle-button img,
#chat-toggle-button svg {
    width: 80px !important;
    height: 85px !important;

}

/*MODIFICHE SPINNY*/
/*MODIFICHE SPINNY*/
.header-title .chat-icon-image {
    width: 36px !important;
    height: 38px !important;
}

div#chatbot-header {
    background: #002143 !important;
    color: #fff !important;
}

div#webchat {
    color: #000000 !important;
}

.webchat__text-content.webchat__text-content--is-markdown.webchat--css-juqzi-1gi36dr {
    color: #000000 !important;
}



.p.webchat__text-content.webchat__text-content--is-plain.webchat--css-juqzi-1gi36dr {
    color: #4d4d4d !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.webchat__render-markdown * {
    color: #4d4d4d !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.webchat__bubble__content * {
    color: #4d4d4d !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

#chat-toggle-button {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 105px !important;
    height: 105px !important;
    border-radius: 50%;
    background: unset!important;
  border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: unset !important;
    transition: all var(--transition-speed) ease-in-out;
    z-index: 1000;
}



#webchat {
    position: relative !important;
    overflow: visible !important;
}

svg.close-icon {
    display: none !important;
}





.webchat__send-box__main {
    width: 100% !important;
    background: #e8e9eb !important;
    border: unset !important;
    align-items: center !important;
    margin-right: 10px !important;
}

.webchat__send-box__main input {
    background: #fff !important;
    padding: 10px !important;
    Border-radius: 5px !important;
    padding-left: 15px !important;
}

#spinny-wrapper {
    z-index: 999999 !important;
}

#spinny-wrapper button:focus {
    outline: unset !important;
}


body:has(#chatbot-popup.visible)::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10 !important;
}

.fissato-alto {
    z-index: 9 !important;
}

body:has(#singleGameContainer) #spinny-wrapper {
    display: none !important;
}

#chat-toggle-button img,
#chat-toggle-button svg {
    width: 80px !important;
    height: 85px !important;

}

/*MODIFICHE SPINNY*/
@media (max-width: 768px) {
#chat-toggle-button {
    position: fixed;
    bottom: 58px;
    left: 10px !important;
    width: 90px !important;
    height: 90px !important;
    box-shadow: unset !important;
}
#chatbot-popup.visible {
    display: block;
    opacity: 1;
    transform: scale(1);
    z-index: 9999;
}
}

@media (max-width: 768px) {
    #chatbot-popup {
        width: 100%;
        height: calc(100% - 136px) !important;
        bottom: 58px !important;
        right: 0;
        border-radius: 0;
    }
}
.cosa-mi-puoi-chiedere-section .section-subtitle{
    color:#444444!important;
}
.info-right-card p {
    color:#444444!important;
}