/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --nero: #0D0D0D;
    --bianco: #F5F5F5;
    --accent: #FF4D2D;
    --grigio: #1A1A1A;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--nero);
    color: var(--bianco);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section {
    padding: 120px 0;
}

.light {
    background: var(--bianco);
    color: var(--nero);
}

.dark {
    background: var(--grigio);
}

.center {
    text-align: center;
}

/* NAVBAR */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: 0.3s ease;
}

.header.scrolled {
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}

.logo {
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--bianco);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-cta {
    background: var(--accent);
    padding: 8px 16px;
    border-radius: 20px;
    color: white !important;
}

/* HERO */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('image/background.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    animation: fadeUp 1.2s ease forwards;
    opacity: 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-buttons .btn {
    width: 100px;
    padding: 16px 0;
    text-align: center;
    border-radius: 50px;
}

/* BUTTONS */
.btn {
    padding: 14px 28px;
    border-radius: 40px;

    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255,77,45,0.4);
}

.btn-secondary {
    
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(85, 85, 85, 0.4);
    background: white;
    color: black;
}


/*TABS*/
.progetto {
    background-color: #0D0D0D;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #fff; /* titolo principale bianco */
}
.spacing-tabs {
    margin-bottom: 5px;
}

.tabs {
    max-width: 800px;
    margin: 0 auto;
}

.tab-headers {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* spazio tra le tab */
}

.tab-header {
    cursor: pointer;
    color: #aaa; /* colore grigio dei non selezionati */
    transition: color 0.3s, transform 0.3s;
    text-align: center;
    padding: 8px 12px;
    border-radius: 5px;
    flex: 1;
}

.tab-header.active {
    color: #fff; /* colore bianco quando selezionato */
    border-bottom: 2px solid #fff; 
    font-weight: bold;
}

.tab-content {
    background: rgba(255, 255, 255, 0.05); /* sfondo leggero per contrasto */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.tab-item {
    display: none;
    color: #fff;
    line-height: 1.6;
}

.tab-item.active {
    display: block;
}
/* Solo su dispositivi mobili */
@media (max-width: 768px) {
    .tab-headers {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; /* smooth touch scroll */
        gap: 1rem;
        padding-bottom: 1rem;

        scrollbar-width: none; /* Firefox */
    }

    .tab-headers::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .tab-header {
        flex: 0 0 80%;
        scroll-snap-align: center; /* Snap al centro durante scroll */
        padding: 1rem;
        border-radius: 1rem;
        background: transparent;
        border-style: solid;
        border-color: #333;
        border-width: 2px 5px 2px 5px;
        cursor: pointer;
        text-align: center;
        white-space: nowrap;
        transition: transform 0.3s, background 0.3s;
    }

    .tab-header.active {
        background: transparent;
        border: none;
        border-bottom: 2px solid #fff;
        color: #fff;
        transform: scale(1.05);
    }
}

/*find Button*/
.find-buttons {
    
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.find-buttons .btn {
    margin-top: 20px;
    width: auto;
    padding: 13px 30px;
    text-align: center;
    border-radius: 50px;
}
.btn-find {
    background: var(--accent);
    color: white;
}
.btn-find:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255,77,45,0.4);
}

/*REWARD BUTTON*/

.reward-buttons {
    display: flex;
    gap: 20px;            /* spazio tra i bottoni */
    justify-content: flex-start; /* allinea a sinistra */
    align-items: center;  /* allinea verticalmente al centro */
    text-align: left;     /* non è strettamente necessario, ma ok */
    margin-top: auto; 
}

.reward-buttons .btn {
    margin-top: 20px;
    width: auto;
    padding: 13px 30px;
    text-align: center;
    border-radius: 50px;
}
.btn-reward {
    background: var(--accent);
    color: white;
}
.btn-reward:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255,77,45,0.4);
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.card {
    background: #111;
    padding: 40px;
    border-radius: 20px;
    transition: 0.4s ease;
    border: 1px solid #222;
    display: flex;          /* diventa flex container verticale */
    flex-direction: column; /* elementi in colonna */
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.card h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.card-title {
    font-weight: 600;
    margin-bottom: 20px;
}

/*trasparenza*/

.trasparenza{
    color: var(--accent);
    font-weight: bolder;
}
.trasparenza-list {
    list-style: none;  /* rimuove i pallini */
}

/*Discovery*/

.discovery-buttons {
    display: flex;
    gap: 20px;            /* spazio tra i bottoni */
    justify-content: center;
    align-items: center;  /* allinea verticalmente al centro */
    text-align: left;     /* non è strettamente necessario, ma ok */
    margin-top: auto; 
}

.discovery-buttons .btn {
    margin-top: 20px;
    width: auto;
    padding: 13px 30px;
    text-align: center;
    border-radius: 50px;
}
.btn-discovery {
    background: var(--accent);
    color: white;
}
.btn-discovery:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255,77,45,0.4);
}

/* CTA */
.cta {
    background: var(--accent);
    color: white;
}

.cta h2 {
    margin-bottom: 40px;
}

/* FOOTER */
.footer {
    padding: 40px 0;
    text-align: center;
    background: black;
}

.legal-info{
    cursor: pointer;
    display: inline-block;
  }

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media(max-width: 768px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .nav-links {
        display: none;
    }
}

/*CAUROSEL*/
.carousel-container {
  text-align: center;
  margin: 20px 0;
  height: 35px; /* altezza del carosello */
  overflow: hidden;
  position: relative;
}

.carousel-item {
  font-size: 1.5rem;
  opacity: 0;
  position: absolute;
  width: 100%;
  left: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
}

/*BUBBLE*/
  .bubbles {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    background: transparent;
    font-family: sans-serif;
  }

  .bubble {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
  }
  .bubble img{
    width: 95%;
    height: 95%;
    object-fit: cover;
    display: block;
  }

  .bubble:hover {
    transform: scale(1.3);
    background-color: var(--accent);
  }

  /* Tooltip */
  .bubble span {
    position: absolute;
    bottom: -50px; /* posizione sotto la bolla */
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, bottom 0.3s;
  }

  .bubble:hover span {
    opacity: 1;
    bottom: -45px; /* leggermente più sotto quando visibile */
  }

  /*MODAL*/

    .modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--accent);
    padding: 30px 50px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    text-align: center;
    color:#fff;
    font-weight: bolder;
  }

  .modal.show {
    transform: translate(-50%, -50%) scale(1);
  }

  /*PREGO BUTTON*/

  .prego-buttons {
    display: flex;
    gap: 20px;            /* spazio tra i bottoni */
    justify-content: center;
    align-items: center;  /* allinea verticalmente al centro */
    text-align: left;     /* non è strettamente necessario, ma ok */
    margin-top: 10px; 
    cursor: pointer;
}

.discovery-prego .btn {
    margin-top: 20px;
    width: auto;
    padding: 13px 30px;
    text-align: center;
    border-radius: 50px;
}
.btn-prego {
    background: white;
    color: var(--accent);
}
.btn-prego:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(122, 122, 122, 0.4);
}

/*Button prego mobile*/
@media (max-width: 768px) {
    .modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--accent);
    padding: 5px 5px;
    border: 1px solid #c4c4c4;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    text-align: center;
    color:#fff;
    font-weight: bolder;
    font-size: 0.80rem;
  }

  .modal.show {
    transform: translate(-50%, -50%) scale(1);
  }

  .legal-info{
    cursor: pointer;
    display: inline-block;
  }

}

