#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    transition: 1s opacity;
    object-fit: cover;
}

/* General Body Styles */
body {
    font-family: 'Google Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    background-color: transparent; /* Allow video to be seen */
    color: #202124;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Header and Navigation */
header {
    padding: 1rem 2rem;
    background-color: transparent;
    border-bottom: 1px solid #dadce0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: #5f6368;
    font-weight: 500;
    font-size: 0.875rem;
}

nav a:hover {
    color: #202124;
}

/* Main Content */
main {
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.tags span {
    display: inline-block;
    background-color: #f1f3f4;
    color: #3c4043;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem; /* Pill shape */
    font-size: 0.875rem;
    font-weight: 500;
}

/* More Time Section */
.more-time {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.more-time h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.activities {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.activities div {
    text-align: center;
}

.activities img {
    max-width: 80px;
    margin-bottom: 1rem;
}

.activities p {
    font-weight: 500;
}

/* How it Works Section */
.how-it-works {
    padding: 4rem 1rem;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    padding: 1.5rem;
}

.step h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 1rem;
}

/* Plans Section */
.plans {
    text-align: center;
    padding: 6rem 1rem;
    background-color: transparent;
}

.plans h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.plans > p {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: #5f6368;
}

.plan-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 2rem;
    width: 320px;
    text-align: center; /* Center the content */
    color: #fff; /* White text for readability */
}

.card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card img {
    display: block;
    margin: 0 auto 1.5rem auto; /* Center the image */
    width: 100px; /* Adjust as needed */
    height: 100px; /* Adjust as needed */
    object-fit: cover; /* Prevent image distortion */
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.card ul {
    list-style-type: none;
    padding: 0;
}

.card li {
    margin-bottom: 1rem;
    color: #fff;
    padding-left: 1.5rem;
    position: relative;
}

.card li::before {
    content: '✓';
    color: #1a73e8;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: transparent;
    border-top: 1px solid #dadce0;
}

footer ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

footer li {
    display: inline;
    margin: 0 1rem;
}

footer a {
    text-decoration: none;
    color: #5f6368;
    font-size: 0.875rem;
}

footer p {
    text-decoration: none;
    color: #5f6368;
    font-size: 0.875rem;
}

#unmute-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: #202124; /* Dark background */
    color: #e8eaed; /* Light text */
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #9aa0a6;
    cursor: pointer;
    line-height: 1;
}

.popup-close:hover {
    color: #e8eaed;
}

.popup-content h2 {
    margin-top: 0;
    color: #fff;
}

.popup-text {
    max-height: 60vh;
    overflow-y: auto;
    margin-top: 1rem;
    padding-right: 1rem; /* For scrollbar spacing */
}

/* Custom scrollbar for popup */
.popup-text::-webkit-scrollbar {
    width: 8px;
}

.popup-text::-webkit-scrollbar-track {
    background: #3c4043;
}

.popup-text::-webkit-scrollbar-thumb {
    background-color: #9aa0a6;
    border-radius: 4px;
}

/* modifiche solo a desktop */
@media (min-width: 992px) {

    .plan-cards {
        flex-wrap: nowrap;
    }

    .more-time {
        padding-top: 2rem;
    }

	.plans {
        padding-top: 6rem;
        padding-bottom: 16rem;
    }

	footer {
        padding-top: 2px;
        padding-bottom: 10px;
    }

}

/* modifiche solo a cellulari */
@media (max-width: 768px) {

    .hero h1 {
    	font-size: 2rem;
    	font-weight: 700;
    	line-height: 1.2;
    	margin-bottom: 2rem;
    }

   .hero {
        padding-bottom: 20px;
    }

	.plans {
        padding-bottom: 6rem;
    }

    footer {
    	padding-top: 2px;
    	padding-bottom: 6px;
    }

    .more-time {
  		padding: 4rem 0rem;
    }

    .activities {
        flex-wrap: wrap;
    }

}