/* Normalização */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

:root {
    --color-primary: #f48c06;
    --color-secondary: #7209b7;
    --color-accent: #3a0ca3;
    --color-bg: #f1faee;
    --color-text: #333;
    --font-main: 'Roboto', Arial, sans-serif;
    --font-heading: 'Bungee', cursive;
    --padding-section: 3rem;
    --max-width: 1000px;
    --border-radius: 12px;
    --shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}

a:hover {
    color: #d97706;
    transform: scale(1.05);
}

.cta {
    background: var(--color-primary);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s, background 0.3s;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 700;
    animation: pulse 2s infinite;
}

.cta:hover {
    transform: translateY(-5px) scale(1.05);
    background: #d97706;
}

@-webkit-keyframes pulse {
    0% {
        -webkit-box-shadow: 0 0 0 0 var(--color-primary);
    }

    70% {
        -webkit-box-shadow: 0 0 0 10px rgba(244, 140, 6, 0);
    }

    100% {
        -webkit-box-shadow: 0 0 0 0 rgba(244, 140, 6, 0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--color-primary);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(244, 140, 6, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(244, 140, 6, 0);
    }
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: var(--padding-section) 0;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #fff;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    z-index: 1000;
    font-size: 1rem;
}

.cookie-banner button {
    margin: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: none;
    font-weight: 600;
}

.cookie-banner button#accept-cookies {
    background: var(--color-primary);
    color: #fff;
}

.cookie-banner button#configure-cookies {
    background: var(--color-accent);
    color: #fff;
}

/* --- HEADER NAV ADAPTIVE --- */
.header nav {
    position: relative;
    z-index: 10;
}

.header nav ul {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    margin-right: 1rem;
    z-index: 20;
}

@media (max-width: 900px) {
    .header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .header nav {
        width: 100%;
    }

    .header nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-secondary);
        box-shadow: 0 8px 24px #3a0ca355;
        padding: 1.5rem 0 1rem 0;
        gap: 1.2rem;
        border-radius: 0 0 16px 16px;
        animation: menu-slide-down 0.3s;
    }

    .header nav ul.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .header-cta {
        margin-left: 0;
        margin-top: 0.7rem;
        align-self: flex-end;
    }
}

@keyframes menu-slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .header nav ul {
        font-size: 1.1rem;
        gap: 0.7rem;
        padding: 1rem 0 0.5rem 0;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo-sub {
        font-size: 0.7rem;
    }
}

/* --- HEADER SIMPLE --- */
.header.simple-header {
    background: linear-gradient(135deg, var(--color-primary) 60%, var(--color-secondary) 100%);
    min-height: 80px;
    border-bottom: 4px solid var(--color-accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    filter: drop-shadow(0 0 10px var(--color-accent));
    opacity: 0.97;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.logo-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    min-width: 180px;
}

.logo-icon {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: -0.2em;
    margin-right: 0.3em;
    filter: drop-shadow(0 2px 6px #f48c0677);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px #00000055, 0 0 8px #f48c06aa;
    display: inline-block;
}

.logo-sub {
    font-family: var(--font-main);
    font-size: 1rem;
    color: #ffe6b7;
    margin-left: 0.2em;
    margin-top: -0.2em;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px #7209b7aa;
    font-weight: 500;
}

.header nav ul li a {
    font-size: 1.1rem;
    padding: 0.3em 0.7em;
    border-radius: 8px;
    background: rgba(58, 12, 163, 0.08);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.header nav ul li a:hover,
.header nav ul li a:focus {
    background: var(--color-accent);
    color: #fffbe7;
    box-shadow: 0 2px 8px #3a0ca355;
}

.header-cta {
    margin-left: 1.5rem;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px #f48c0677;
    border: 2px solid #fff;
    background: linear-gradient(90deg, #f48c06 80%, #3a0ca3 100%);
    text-shadow: 0 1px 4px #7209b7aa;
}

@media (max-width: 768px) {
    .header.simple-header {
        min-height: 60px;
    }

    .header-flex {
        min-height: 50px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-sub {
        font-size: 0.85rem;
    }
}

/* Hero */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    text-align: center;
    padding-top: 2rem;
    height: 100vh;
    padding-bottom: 2rem;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(34, 7, 53, 0.75), rgba(58, 12, 163, 0.65)), url('hero-bg.webp') center center/cover no-repeat;
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1,
.hero p,
.hero .cta {
    color: #fff;
    text-shadow: 0 2px 12px #3a0ca3cc, 0 0 8px #000a;
}

.hero p {
    color: #d0f5d9;
    margin-bottom: 100px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero img {
    max-width: 100%;
    border-radius: var(--border-radius);
    filter: drop-shadow(0 0 10px var(--color-primary));
    -webkit-filter: drop-shadow(0 0 10px var(--color-primary));
    -moz-filter: drop-shadow(0 0 10px var(--color-primary));
}

@media (max-width: 768px) {
    .hero {
        padding-top: 1.2rem;
        padding-bottom: 1.2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* Seção do jogo */
.game-section {
    text-align: center;
}

.game-section img {
    max-width: 500px;
    margin: 1rem auto;
    border-radius: var(--border-radius);
}

.game-section .cta {
    font-size: 1.2rem;
}

/* Pop-up */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup-content {
    background: #6728a8;

    border-radius: 15px;
    width: 90vw;
    max-width: 800px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow);
    z-index: 111;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Carrossel de testemunhos */
.carousel {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1.5rem 0;
    scroll-behavior: smooth;
}

.review {
    flex: 0 0 320px;
    background: #fff;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-width: 280px;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.review:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px #3a0ca355;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
    box-shadow: 0 2px 8px #7209b755;
}

.review-city {
    color: var(--color-accent);
    font-size: 0.95rem;
    margin-left: 0.3em;
}

.review-rating {
    color: #f48c06;
    font-size: 1.1rem;
    margin-left: 0.5em;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .carousel {
        gap: 1rem;
    }

    .review {
        min-width: 220px;
        padding: 1.2rem 0.7rem;
    }

    .review-avatar {
        width: 36px;
        height: 36px;
    }
}

/* FAQ */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.accordion-item {
    border-radius: var(--border-radius);
    box-shadow: 0 2px 12px #3a0ca322;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s;
}

.accordion-item h3 {
    cursor: pointer;
    padding: 1.2rem 1.5rem 1.2rem 2.5rem;
    background: var(--color-secondary);
    color: #fff;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    position: relative;
    font-size: 1.15rem;
    transition: background 0.3s;
}

.accordion-item h3::before {
    content: '+';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: #f48c06;
    transition: content 0.3s;
}

.accordion-item.active h3::before {
    content: '-';
}

.accordion-item p {
    display: none;
    padding: 1.2rem 1.5rem;
    background: #fff;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    font-size: 1.05rem;
    color: var(--color-text);
    animation: fadeIn 0.5s;
}

.accordion-item.active p {
    display: block;
}

/* Formulário de contacto */
form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form input,
form textarea {
    padding: 1rem;
    border: 1px solid var(--color-accent);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
}

form button {
    align-self: center;
}

form label {
    font-size: 0.95rem;
    color: var(--color-text);
}

form input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Rodapé */
footer {
    background: var(--color-accent);
    color: #fff;
    padding: 2rem;
    text-align: center;
}

footer a {
    color: #fff;
    margin: 0 1rem;
    text-decoration: underline;
}

footer a:hover {
    color: #f48c06;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .game-section img {
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    .popup-content {
        width: 100vw;
    }

}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

.footer-disclaimer {
    font-size: 0.98rem;
    color: #ffe6b7;
    margin: 1.2rem auto 0 auto;
    max-width: 700px;
    text-align: center;
    line-height: 1.6;
    opacity: 0.92;
}

.footer-legal {
    font-size: 0.93rem;
    color: #ffe6b7;
    margin: 1.1rem auto 0 auto;
    max-width: 700px;
    text-align: center;
    line-height: 1.5;
    opacity: 0.85;
}

.legal-list {
    margin: 2rem 0 1.5rem 1.5rem;
    padding: 0;
    font-size: 1.08rem;
    color: var(--color-text);
    line-height: 1.7;
    list-style: decimal inside;
    max-width: 800px;
}

.legal-list li {
    margin-bottom: 1.2rem;
    padding-left: 0.2em;
}

.legal-list strong {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.08em;
}

@media (max-width: 600px) {
    .legal-list {
        font-size: 0.98rem;
        margin-left: 0.5rem;
    }
}

/* --- FOOTER PROFESSIONAL --- */
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr 1.5fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
    padding: 2.5rem 0 1.2rem 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px #00000055, 0 0 8px #f48c06aa;
    margin-left: 0.2em;
}

.footer-slogan {
    font-size: 1.02rem;
    color: #ffe6b7;
    margin-top: 0.2em;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer-disclaimer,
.footer-legal {
    font-size: 0.98rem;
    color: #ffe6b7;
    margin: 0.5rem auto 0 auto;
    max-width: 700px;
    text-align: center;
    line-height: 1.6;
    opacity: 0.92;
}

.footer-legal {
    opacity: 0.85;
    margin-top: 1.1rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 0.5rem;
}

.footer-nav a {
    color: #fff;
    font-size: 1.08rem;
    text-decoration: none;

    align-items: center;
    gap: 0.5em;
    padding: 0.2em 0.5em;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    font-weight: 600;
}

.footer-nav a:hover {
    background: var(--color-accent);
    color: #fffbe7;
    box-shadow: 0 2px 8px #3a0ca355;
}

.footer-link-icon {
    font-size: 1.2em;
    margin-right: 0.2em;
}

.footer-copy {
    text-align: center;
    color: #ffe6b7;
    font-size: 0.98rem;
    margin: 0.5rem 0 0.2rem 0;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 2fr 1.5fr;
        gap: 1.2rem;
    }

    .footer-nav {
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }

    .footer-nav {
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding: 1.2rem 0 0.7rem 0;
    }

    .footer-brand,
    .footer-nav {
        align-items: center;
    }

    .footer-nav {
        gap: 0.7rem;
    }

    .footer-disclaimer,
    .footer-legal {
        font-size: 0.93rem;
    }
}

.age-disclaimer, .age-disclaimer-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-size: 1.15rem;
    color: #d90429;
    font-weight: 700;
    margin: 1.2rem 0 1.2rem 0;
    letter-spacing: 1px;
}
.age18 {
    display: inline-block;
    background: #d90429;
    color: #fff;
    border-radius: 50%;
    width: 2.1em;
    height: 2.1em;
    text-align: center;
    line-height: 2.1em;
    font-size: 1.1em;
    font-weight: 900;
    box-shadow: 0 2px 8px #d9042944;
    margin-right: 0.2em;
}
@media (max-width: 600px) {
    .age-disclaimer, .age-disclaimer-footer { font-size: 1rem; }
    .age18 { width: 1.5em; height: 1.5em; line-height: 1.5em; font-size: 1em; }
}

.age-disclaimer-popup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-size: 1.05rem;
    color: #d90429;
    font-weight: 700;
    margin: 0.7rem 0 0.7rem 0;
    letter-spacing: 1px;
}
@media (max-width: 600px) {
    .age-disclaimer-popup { font-size: 0.95rem; }
}

.hero-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
    background: linear-gradient(90deg, #f48c06 80%, #7209b7 100%);
    color: #fff;
    font-size: 1.13rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 2px 16px #3a0ca355;
    padding: 1.1em 1.5em;
    margin: 2.2em auto 0 auto;
    max-width: 600px;
    border: 2.5px solid #3a0ca3;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.5;
    animation: pulse 2.5s infinite;
}
.hero-warning-icon {
    font-size: 2em;
    margin-right: 0.2em;
    filter: drop-shadow(0 2px 8px #f48c0677);
}
@media (max-width: 600px) {
    .hero-warning { font-size: 0.98rem; padding: 0.7em 0.5em; }
    .hero-warning-icon { font-size: 1.3em; }
}

/* --- FOOTER STRUCTURED --- */
.footer-struct {
    display: grid;
    grid-template-columns: 1.2fr 2fr 1.2fr;
    gap: 2.5rem;
    align-items: flex-start;
    padding: 2.5rem 0 1.2rem 0;
    border-top: 2px solid #3a0ca3;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.footer-col-brand {
    align-items: flex-start;
    min-width: 180px;
}
.footer-col-info {
    align-items: center;
    border-left: 1.5px solid #3a0ca355;
    border-right: 1.5px solid #3a0ca355;
    padding: 0 1.2rem;
}
.footer-col-nav {
    align-items: flex-end;
}
.footer-responsible {
    margin-top: 1.2rem;
    gap: 1.2rem;
}
.footer-resp-img {
    height: 2.2em;
    width: auto;
    filter: grayscale(0.2) drop-shadow(0 2px 8px #3a0ca355);
    border-radius: 6px;

    padding: 0.2em 0.4em;
    transition: filter 0.2s, box-shadow 0.2s;
}
.footer-resp-img:hover {
    filter: grayscale(0) drop-shadow(0 4px 16px #f48c0677);
    box-shadow: 0 2px 12px #f48c0677;
}
@media (max-width: 1100px) {
    .footer-struct {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 1.2rem;
    }
    .footer-col-info { padding: 0 0.5rem; }
}
@media (max-width: 900px) {
    .footer-struct {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }
    .footer-col-nav { align-items: flex-start; }
    .footer-col-info { border: none; }
}
@media (max-width: 700px) {
    .footer-struct {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding: 1.2rem 0 0.7rem 0;
    }
    .footer-col, .footer-col-brand, .footer-col-info, .footer-col-nav { align-items: center; border: none; padding: 0; }
    .footer-responsible { justify-content: center; }
}

/* --- POPUP 18+ --- */
.popup18-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    transition: opacity 0.3s;
}
.popup18-content {
    background: #f48c06;
    border-radius: 18px;
    box-shadow: 0 8px 32px #3a0ca399, 0 2px 8px #7209b755;
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 370px;
    width: 95vw;
    text-align: center;
    color: #fff;
    position: relative;
    border: 3px solid #3a0ca3;
}
.popup18-title {
    font-size: 2rem;
    font-family: var(--font-heading);
    margin-bottom: 1.1rem;
    color: #fff;
    text-shadow: 0 2px 8px #3a0ca355;
}
.popup18-text {
    font-size: 1.08rem;
    margin-bottom: 1.2rem;
    color: #fffbe7;
}
.popup18-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
}
.popup18-label {
    display: flex;
    align-items: center;
    gap: 0.7em;
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
}
.popup18-checkbox {
    accent-color: #f48c06;
    width: 1.2em;
    height: 1.2em;
    border-radius: 4px;
    border: 2px solid #3a0ca3;
}
.popup18-btn {
    padding: 0.8em 2em;
    background: linear-gradient(90deg, #f48c06 80%, #3a0ca3 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px #3a0ca355;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.popup18-btn:hover {
    background: linear-gradient(90deg, #7209b7 60%, #f48c06 100%);
    color: #fffbe7;
    box-shadow: 0 4px 16px #f48c0677;
}
@media (max-width: 600px) {
    .popup18-content { padding: 1.2rem 0.5rem; font-size: 0.98rem; }
    .popup18-title { font-size: 1.3rem; }
}