/* Reset e Stili Base */
:root {
    /* Colori */
    --primary: #15a02c;
    --primary-hover: #42ab45;
    --secondary: #eb5e28;
    --dark: #121212;
    --dark-light: #353535;
    --light: #fffcf2;
    --gray: #403d39;
    
    /* Spaziature */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Bordi */
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.page-wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

p {
    margin-bottom: 1em;
}

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

.highlight {
    color: var(--primary);
}

.highlight-bg {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(51, 48, 48, 0.8), transparent);
    filter: blur(15px);
    z-index: -1;
    pointer-events: none;
}

/* Layout */

    /* Flex rules */
	
	.flex-center{
		display: flex;
		justify-content: center;
		align-items: center;
	}
	
	.flex-sb{
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.flex-start{
		display: flex;
		justify-content: flex-start;
		align-items: center;
	}

	.flex-end{
		display: flex;
		justify-content: flex-end;
		align-items: center;
	}
	
	.flex-sx {
		display: flex;
		justify-content: left;
		align-items: flex-start;
		flex-direction: column;
	}

	.flex-dx {
		display: flex;
		justify-content: center;
		align-items: flex-end;
		flex-direction: column;
	}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    display: flex;
    justify-content: center;
    align-items: center;;
    text-align: center;
    margin: var(--space-xl) 0;
    height: 7rem;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--dark);
    border-bottom: 1px solid var(--gray);
    z-index: 1000;
    padding: var(--space-sm) 0;
    max-width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 550;
    font-size: 1.5rem;
    color: var(--light);
}

/* Navigation */
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.desktop-nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 550;
    font-size: 1rem;
    padding: var(--space-xs) 0;
    position: relative;
}

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

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-hover);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--light);
    transition: all 0.3s ease;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 350px;
    height: 100vh;
    background-color: var(--dark);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: var(--space-lg);
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.closebtn {
    font-size: 2rem;
    color: var(--light);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mobile-nav a {
    font-size: 1.25rem;
    padding: var(--space-xs) 0;
}

/* Login Button */
.login-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    padding: var(--space-xs) var(--space-md);
    background-color: var(--light);
    color: var(--primary);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: var(--primary-hover);
    color: var(--light);
    padding: var(--space-xs) var(--space-lg);
}

.mc-main {
	padding-top: 1px;
	background-image: url(images/Minecraft.png);
	background-attachment: fixed; /* Rende l'immagine fissa */
	background-size: cover; /* Rende l'immagine coprente l'intero spazio */
	background-position: center; /* Centra l'immagine */
	background-repeat: no-repeat; /* Evita la ripetizione dell'immagine */ /*
	padding-bottom: 20vh; */
    width: 100%;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    margin-top: 5rem;
    padding-top: 120px;
    padding-bottom: 80px;
    text-align: center; /* 
    background-image: url(images/Minecraft.png); */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    max-width: 100vw;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; /*
    background-color: rgba(0, 0, 0, 0.6); */
    z-index: 0;
}

.hero h1,
.hero h2,
.hero .divider {
    position: relative;
    z-index: 1;
}

.divider {
    width: 100%;
    max-width: 650px;
    height: 1px;
    background-color: var(--light);
    margin: var(--space-xs) auto;
}

/* Plans Section */

.plans-section {
    width: 100%;
    overflow-x: hidden;
}

.plans-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.plan-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background: rgba(59, 55, 55, 0.35);
    backdrop-filter: blur(7px);
    border: 1px solid var(--light);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.plan-card.featured {
    border: 2px solid var(--primary);
}

.plan-header {
    margin-bottom: var(--space-md);
    text-align: center;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: var(--space-xs) 0;
}

.plan-price span {
    font-size: 1rem;
}

.plan-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
}

.plan-divider {
    height: 1px;
    width: 100%;
    background-color: var(--light);
    margin: var(--space-md) 0;
}

.mini-divider {
    height: 1px;
    width: 75%;
    background-color: var(--light);
    margin: var(--space-sm) auto;
}

.plan-features {
    list-style: none;
}

.plan-features li {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.feature-check {
    color: var(--primary);
}

.feature-cross {
    color: #ff4d4d;
}

.plan-cta {
    width: 100%;
    padding: var(--space-sm);
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--light);
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-cta:hover {
    background-color: var(--primary);
    color: var(--light);
}

/* Features Section */

.features-container {
    max-width: 1000px;
    background: rgba(59, 55, 55, 0.35);
    backdrop-filter: blur(7px);
    border: 1px solid var(--light);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    margin: 0 auto; /* Sostituisce margin: 0 5rem */
    width: calc(100% - 2rem); /* Lascia un po' di spazio ai lati */
    max-width: 1000px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-lg) 0;
}

.feature-icon {
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--light);
    margin-bottom: var(--space-md);
}

.feature-divider {
    height: 1px;
    width: 60%;
    background-color: var(--light);
    margin: var(--space-sm) auto;
}

.feature-content p{
    margin-top: 0.2rem;
    max-width: 900px;
}

/* Reviews Section */
.reviews-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
    gap: var(--space-md);
    padding-left: 1rem;
    padding-right: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: calc(100% - 2rem);
    margin: 0 auto;
    margin-bottom: 15rem;
}

.review-card {
    flex: 0 0 90%;
    max-width: 450px;
    scroll-snap-align: start;
    background: rgba(59, 55, 55, 0.35);
    backdrop-filter: blur(7px);
    border: 1px solid var(--light);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.review-divider {
    height: 1px;
    width: 50%;
    background-color: var(--light);
    margin: var(--space-md) 0;
}

.review-text {
    margin-bottom: var(--space-md);
}

.review-gallery {
    position: relative;
}

.gallery-images {
    display: flex;
    overflow-x: auto;
    gap: var(--space-xs);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gallery-images::-webkit-scrollbar {
    display: none;
}

.gallery-images img {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    scroll-snap-align: start;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.gallery-arrow.prev {
    left: 0;
}

.gallery-arrow.next {
    right: 0;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-md);
}

.lightbox-arrow.prev {
    left: var(--space-md);
}

.lightbox-arrow.next {
    right: var(--space-md);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: var(--space-md);
    right: var(--space-md);
    max-width: 90%;
    width: 500px;
    background-color: var(--dark-light);
    border: 1px solid var(--light);
    border-radius: var(--border-radius-lg);
    padding: var(--space-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
}

.cookie-heading {
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.cookie-text {
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
}

.btn-accept {
    padding: var(--space-xs) var(--space-md);
    background-color: var(--light);
    color: var(--primary);
    border: 2px solid var(--PRIMARY);
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept:hover {
    background-color: var(--primary-hover);
    color: var(--light);
}

/* Footer */
.main-footer {
    background-color: var(--dark);
    padding: var(--space-lg) 0 var(--space-lg);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 550;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    display: inline-block;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.footer-nav a {
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

.footer-copyright {
    font-size: 0.75rem;
    color: var(--light);
}

/* Media Queries */
@media (max-width: 1024px) {

    .desktop-nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .plans-container {
        flex-direction: column;
        align-items: center;
    }
    
    .plan-card {
        max-width: 100%;
    }

    .main-header{
        max-width: 100vw;
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 100vw;
        margin: 0 auto;
        padding: 0 var(--space-md);
    }

    /* Features Section */
    .features-container {
        margin: 0 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .section {
        padding: var(--space-lg) 0;
    }
    
    .cookie-banner {
        width: calc(100% - var(--space-md) * 2);
        right: var(--space-md);
        left: var(--space-md);
        max-width: none;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .header-container {
        padding: 0 var(--space-sm);
    }
    
    .plan-card {
        min-width: 100%;
    }
    
    .feature {
        padding: var(--space-md) 0;
    }
    
    .feature-icon {
        width: 80px;
        height: 80px;
    }

    .plans-container {
        margin: 0 1rem;
        width: calc(100% - 2rem);
    }
    
    /* Nuove regole per le recensioni */
    .review-card {
        padding: var(--space-md);
        margin: 0 0.5rem;
        width: calc(100% - 1rem);
    }

    .review-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }

    .review-divider {
        width: 100%;
        margin: var(--space-sm) 0;
    }

    .gallery-images img {
        width: 100px;
        height: 100px;
    }

    .reviews-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        width: calc(100% - 1rem);
    }
}

/* Media Queries aggiuntive */
@media (max-width: 768px) {
    .features-container {
        margin: 0 1rem;
        width: calc(100% - 2rem);
    }
    
    .plans-container {
        margin: 0 1rem !important; /* Sovrascrivi eventuali altri stili */
    }
}

@media (max-width: 480px) {
    .features-container,
    .plans-container {
        margin: 0 3rem !important; /* As deepseek said 
        margin: 0 0.5rem !important; */
        width: calc(100% - 6rem);
    }
}

/* A-A-A-A- */

/* Aggiungi queste regole alla fine del tuo CSS */

@media (max-width: 480px) {
    /* Correzione per la recensione */
    .review-card {
        padding: var(--space-md); /* Riduci il padding */
        margin: 0 0.5rem; /* Aggiungi margini laterali */
        width: calc(100% - 1rem); /* Larghezza adattata */
    }

    .review-text {
        font-size: 0.9rem; /* Riduci leggermente la dimensione del testo */
        line-height: 1.5; /* Migliora la leggibilità */
    }

    .review-header {
        flex-direction: column; /* Disposizione verticale */
        align-items: flex-start;
        gap: var(--space-xs);
    }

    .review-divider {
        width: 100%; /* Divider a tutta larghezza */
        margin: var(--space-sm) 0;
    }

    .gallery-images img {
        width: 100px; /* Riduci leggermente le immagini */
        height: 100px;
    }

    /* Correzione specifica per il container delle recensioni */
    .reviews-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        width: calc(100% - 1rem);
    }
}

/* Aggiungi questa media query più specifica per schermi molto piccoli */
@media (max-width: 360px) {
    .review-card {
        padding: var(--space-sm);
    }

    .review-text {
        font-size: 0.85rem;
    }

    .gallery-images img {
        width: 80px;
        height: 80px;
    }
}