/* Reset e stili base */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Arial', sans-serif;
    color: #333;
    overflow-x: hidden;
}

body {
    background-color: #f8f9fa;
}

/* Stili Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    color: white;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
}

.navbar-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
}

.navbar nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}


.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #4eb5ff;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: #4eb5ff;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
    color: white;
    background-color: #4eb5ff;
}

/* Dropdown menu 
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    min-width: 150px;
    border-radius: 8px;
    top: 40px;  
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a, .logout-btn {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: center;
}

.dropdown-menu a:hover, .logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

*/

/* Hamburger menu per mobile */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Stili per contenuti principali */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px - 100px); /* Header - Footer */
}

/* Stili per il footer */
.footer {
    background-color: #343a40;
    color: white;
    padding: 3rem 0;
}

.footer h4, .footer h5 {
    margin-bottom: 1.5rem;
    color: #4eb5ff;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #4eb5ff;
}

/* Componenti comuni */
.btn-primary {
    background-color: #4eb5ff;
    border-color: #4eb5ff;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #3a9fe8;
    border-color: #3a9fe8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #4eb5ff;
    color: #4eb5ff;
    border-radius: 30px;
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #4eb5ff;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Card e container */
.card {
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #343a40;
}

.section-spacing {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-weight: 700;
    color: #343a40;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #4eb5ff;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Stili per form */
.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
}

.form-control:focus {
    border-color: #4eb5ff;
    box-shadow: 0 0 0 0.2rem rgba(78, 181, 255, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Stili per messaggi */
.messages-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    width: 350px;
}

.alert {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

/* Stili per le dashboard e i visualizzatori di onde */
.ripple-container {
    position: relative;
    width: 100%;
    height: 300px;
    background-color: #f0f8ff;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.ripple-dot {
    position: absolute;
    background-color: rgba(78, 181, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Stili Contenuto Home */
.home-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.main-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 4rem;
    text-align: center;
    z-index: 5;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}


/* Loading animations */
.loading-wave {
    width: 300px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 0 auto;
}

.loading-bar {
    width: 20px;
    height: 10px;
    margin: 0 5px;
    background-color: #4eb5ff;
    border-radius: 5px;
    animation: loading-wave-animation 1s ease-in-out infinite;
}

.loading-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.loading-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.loading-bar:nth-child(4) {
    animation-delay: 0.3s;
}

/* Home page */
.hero-section {
width: 100%;
height: 100vh;
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
color: white;
text-align: center;
background-color: transparent;
margin-top: -10px;  
}

.hero-content {
position: relative;
z-index: 2;
pointer-events: auto;
padding: 2rem;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
}

#rippleCanvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0; /* Un valore superiore a -1 ma inferiore agli elementi interni */
pointer-events: none; /* Importante: permette i click attraverso il canvas */
display: block;
}

.hero-title {
font-size: 4rem;
font-weight: 700;
margin-bottom: 1.5rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
font-size: 1.5rem;
margin-bottom: 2rem;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.cta-button {
padding: 12px 30px;
border-radius: 30px;
font-weight: 600;
font-size: 1.1rem;
transition: all 0.3s ease;
text-decoration: none;
}

.primary-cta {
background: #4eb5ff;
color: white;
border: none;
}

.primary-cta:hover {
background: #3a9fe8;
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.secondary-cta {
background: transparent;
color: white;
border: 2px solid white;
}

.secondary-cta:hover {
background: rgba(255, 255, 255, 0.1);
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.features-section {
padding: 5rem 0;
background-color: #f8f9fa;
}

.section-title {
text-align: center;
margin-bottom: 3rem;
font-size: 2.5rem;
color: #333;
}

.feature-card {
padding: 2rem;
border-radius: 18px;
margin-bottom: 2rem;
transition: all 0.3s ease;
height: 100%;
background-color: white;
box-shadow: 0 8px 24px rgba(9, 30, 66, 0.08);
border: 1px solid rgba(78, 181, 255, 0.16);
}

.feature-card:hover {
transform: translateY(-8px);
box-shadow: 0 18px 34px rgba(9, 30, 66, 0.14);
}

.feature-icon {
font-size: 3rem;
margin-bottom: 1.5rem;
color: #4eb5ff;
}

.feature-title {
font-size: 1.5rem;
margin-bottom: 1rem;
color: #333;
}

.feature-description {
color: #6c757d;
font-size: 1.1rem;
}

.launch-readiness-section {
padding: 5rem 0;
background: linear-gradient(180deg, #eef6ff 0%, #f7fbff 100%);
}

.launch-card {
height: 100%;
padding: 1.8rem;
border-radius: 18px;
background: #ffffff;
border: 1px solid rgba(78, 181, 255, 0.18);
box-shadow: 0 12px 24px rgba(9, 30, 66, 0.08);
transition: transform 0.25s ease, box-shadow 0.25s ease;
text-align: left;
}

.launch-card:hover {
transform: translateY(-6px);
box-shadow: 0 18px 30px rgba(9, 30, 66, 0.14);
}

.launch-card i {
font-size: 1.7rem;
color: #158de0;
margin-bottom: 0.9rem;
display: inline-block;
}

.launch-card h4 {
font-size: 1.25rem;
margin-bottom: 0.5rem;
}

.launch-card p {
margin: 0;
color: #5b6778;
}

.impact-section {
padding: 5rem 0;
text-align: center;
background-color: white;
}

.impact-numbers {
display: flex;
justify-content: center;
margin-top: 3rem;
gap: 0.4rem;
flex-wrap: wrap;
}

.impact-item {
padding: 1rem 1.6rem;
border-right: 1px solid #dee2e6;
background: #f9fcff;
border-radius: 14px;
min-width: 210px;
}

.impact-item:last-child {
border-right: none;
}

.impact-number {
font-size: 3rem;
font-weight: 700;
color: #4eb5ff;
margin-bottom: 0.5rem;
}

.impact-label {
font-size: 1.1rem;
color: #6c757d;
}

.how-it-works-section {
padding: 5rem 0;
background-color: #f8f9fa;
}

.step-card {
display: flex;
margin-bottom: 2rem;
padding: 1.4rem;
background: #ffffff;
border-radius: 16px;
box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
border: 1px solid #e6eef8;
height: 100%;
transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
transform: translateY(-6px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
font-size: 2.5rem;
font-weight: 700;
color: #4eb5ff;
margin-right: 1.5rem;
line-height: 1;
}

.step-content h4 {
margin-bottom: 0.5rem;
font-size: 1.5rem;
}

.step-content p {
color: #6c757d;
}

.cta-section {
padding: 5rem 0;
text-align: center;
background: linear-gradient(135deg, #269de6 0%, #0f72c6 100%);
color: white;
}

.cta-title {
font-size: 2.5rem;
margin-bottom: 1.5rem;
}

.cta-description {
max-width: 700px;
margin: 0 auto 2rem;
font-size: 1.2rem;
}

.wave-animation {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
z-index: 1;
pointer-events: none;
}

.wave {
position: absolute;
width: 100%;
height: 100px;
bottom: 0;
left: 0;
background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(20, 128, 185, 0.18) 100%);
background-size: 100% 100px;
}

.wave#wave1 {
z-index: 1000;
opacity: 1;
bottom: 0;
animation: animateWave 4s linear infinite;
}

.wave#wave2 {
z-index: 999;
opacity: 0.5;
bottom: 10px;
animation: animateWave_02 4s linear infinite;
}

.wave#wave3 {
z-index: 998;
opacity: 0.2;
bottom: 15px;
animation: animateWave 3s linear infinite;
}

.wave#wave4 {
z-index: 997;
opacity: 0.7;
bottom: 20px;
animation: animateWave_02 3s linear infinite;
}

@keyframes animateWave {
0% {
    background-position-x: 1000px;
}
100% {
    background-position-x: 0px;
}
}

@keyframes animateWave_02 {
0% {
    background-position-x: 0px;
}
100% {
    background-position-x: 1000px;
}
}

@media (max-width: 992px) {
.hero-title {
    font-size: 3rem;
}

.hero-subtitle {
    font-size: 1.2rem;
}
}

@media (max-width: 768px) {
.hero-section {
    min-height: 85vh;
}

.hero-title {
    font-size: 2.2rem;
}

.hero-subtitle {
    font-size: 1.05rem;
}

.cta-buttons {
    flex-direction: column;
    align-items: center;
}

.impact-item {
    border-right: none;
    width: 100%;
    max-width: 320px;
}

.step-card {
    margin-bottom: 1rem;
}
}

/* Cookie Consent (Blue Theme) */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0b3c8a 0%, #1473e6 55%, #2ba6ff 100%);
    color: #fff;
    padding: 20px;
    box-shadow: 0 -8px 24px rgba(8, 36, 84, 0.35);
    z-index: 9999;
    display: none;
}

#cookie-banner.show {
    display: block;
    animation: cookieSlideUp 0.5s ease-out;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

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

#cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 250px;
}

#cookie-banner .cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#cookie-banner button {
    padding: 10px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#cookie-banner .btn-accept {
    background: linear-gradient(135deg, #1f8fff 0%, #49b2ff 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(20, 115, 230, 0.35);
}

#cookie-banner .btn-accept:hover {
    background: linear-gradient(135deg, #127ce6 0%, #2d9bf0 100%);
    transform: translateY(-2px);
}

#cookie-banner .btn-settings {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

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

.cookie-learn-more {
    color: #dff1ff;
    text-decoration: underline;
}

#cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#cookie-modal.show {
    display: flex;
    animation: cookieFadeIn 0.3s ease-out;
}

@keyframes cookieFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cookie-modal-content {
    background: #f8fbff;
    border-radius: 14px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(8, 36, 84, 0.3);
}

.cookie-modal-header {
    background: linear-gradient(135deg, #0b3c8a 0%, #1473e6 55%, #2ba6ff 100%);
    color: #fff;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.cookie-modal-body {
    padding: 30px;
    color: #333;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 15px;
    background: #eaf4ff;
    border-radius: 8px;
    border: 1px solid #cfe4ff;
}

.cookie-category h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #0f4ba1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-category p {
    margin: 0;
    font-size: 0.9rem;
    color: #3f5f87;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #bdd9ff;
    transition: 0.4s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #1f8fff;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #cfe4ff;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

#cookie-modal .cookie-modal-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
}

#cookie-modal .btn-save {
    background: linear-gradient(135deg, #1f8fff 0%, #49b2ff 100%);
    color: #fff;
}

#cookie-modal .btn-save:hover {
    background: linear-gradient(135deg, #127ce6 0%, #2d9bf0 100%);
}

#cookie-modal .btn-cancel {
    background: #d8e7fb;
    color: #0f4ba1;
    border: 1px solid #bfd9fb;
}

#cookie-modal .btn-cancel:hover {
    background: #c6ddfb;
}

@media (max-width: 768px) {
    #cookie-banner .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    #cookie-banner .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}
