/* Main by Texy */

/* Hero */

#hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  z-index: 1;
}

#hero .hero-bg {
  background: url("../img/foto-sally-deserto-modificata.png") no-repeat center center/cover;
  position: absolute;
  inset: 0;
  width: 100%;
  z-index: -2;
  object-fit: cover;
}

#hero-text {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-text {
  text-align: center;
  color: var(--white);
  display: grid;
  place-items: center;
  padding: 120px 0;
  gap: 25px;
}

#countdown {
  background: var(--orange);
  padding: 15px 20px;
  border-radius: 15px;
  color: var(--white);
  max-width: 750px;
  margin-bottom: 1rem;
}


/* hello there */


#hello-there {
    position: relative;
    display: flex;              /* mancava */
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    background-color: var(--blue);
}

#hello-there .typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--dark-blue);
  width: 0;
  opacity: 0;
  display: inline-block;
}

#hello-there .visible .typewriter {
  opacity: 1;
  animation: 
  typing 3s steps(35, end) forwards, 
  blink-caret 0.75s step-end infinite;
}



@keyframes typing {
  from { width: 0 }
  to { width: 32.5ch }
}

@keyframes blink-caret {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--black); }
}


/* presentation */

.test-1 {
    min-height: 100vh;
    display: flex;
    align-items: center;
}


#presentation {
    align-items: center;
    justify-content: center;
    background-color: var(--transparent);
    gap: 1rem;
}

#presentation .presetation {
     display:flex; 
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#presentation .presetation-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
}


#presentation .presentation-text h2 {
    text-align: left;
    
}

#presentation .presetation-image {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#presentation .presetation-image img {
    border-radius: 100px;
}

#mission {
    background: var(--black);
}

/* Sezioni principali di #mission */
#img-pattern-1,
#img-pattern-2,
#img-pattern-3 {
  position: sticky;
  top: 0;
  height: 30ch;
  width: 100%;
  overflow: hidden;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease;
}

#img-pattern-1.active,
#img-pattern-2.active,
#img-pattern-3.active {
  opacity: 0.85;
  z-index: 2;
}

/* Background delle sezioni */
.img-pattern-bg-1,
.img-pattern-bg-2,
.img-pattern-bg-3 {
  height: 30ch;
  width: 100%;
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.img-pattern-bg-1 {
  background-image: url("../img/img-pattern-bg.webp");
}

.img-pattern-bg-2 {
  background-image: url("../img/world.png");
}

.img-pattern-bg-3 {
  background-image: url("../img/Equi-4L-foto-4Ltrophy-1.png");
}
/* Testo centrato */
#mission .img-pattern-text {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  height: 100%;
}

/* Stile del testo */
#mission .p, 
#mission .h2 {
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 2px 2px 30px var(--black);
}

/* Spazio scroll per attivare tutte le sezioni */
#mission::after {
  content: "";
  display: block;
  height: 100%;
}

/* members */
#memebers {
    text-align: center;
    padding: 0px 0px 30px 0px;
}

#memebers .container {
    background-color: var(--dark-orange);
    border-radius: 0px 0px 50px 50px;
    padding-bottom: 30px;
}

#memebers .title {
    text-align: center;
    text-transform: uppercase;
}

#memebers .memebers-text {
    text-align: center;
    margin: 20px 0px 20px 0px;
}

#memebers .member-card {
    width: 400px;
    background: var(--white-sand);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin: auto;
}

#memebers .member-card h2 {
    margin-bottom: 10px;
}

#memebers .text-wrapper p {
 margin: 12.5px 0 12.5px 0;
}

#memebers .member-card picture {
    justify-content: center;
    align-items: center;
    margin: 15px 0;
}

#memebers .member-card img {
    width: 100%;
    max-width: 150px;
    border-radius: 25%;
    object-fit: cover;
}

#memebers p {
    font-size: 1.2rem;
    color: var(--dark-blue);
}

html, body {
  height: 100%;
  margin: 0;
}

#friend {
  width: 100%;
  height: 100%; /* oppure usa 50% se il genitore ha un’altezza fissa */
}

#friend iframe {
  width: 100%;
  height: 50vh;
  border: 0;
}

/* CONTACT */

#contact {
    background-color: var(--dark-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#contact .contact {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#contact .btn-contact {
    background-color: var(--orange);
    width: 90%;
    max-width: 600px;
    padding: 15px 0;
    text-align: center;
    border-radius: 50px;
    transition: 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 3px solid var(--white-sand);
}

#contact .btn-contact:hover {
    background-color: var(--white-sand);
    border: 3px solid var(--orange);
}

#contact .btn-contact a:hover {
    color: var(--dark-orange);
}


#contact .btn-contact a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: bold;
    padding: 15px 0;
    text-transform: uppercase;
}

#more-info {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    border-radius: 50px;
}



#more-info .img-contact {
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    background-color: var(--white-sand);
    height: 100%;
    width: 100%;
    border-radius: 50px;
    overflow: hidden;
}

#more-info .img-contact picture,
#more-info .img-contact img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 25px;
}

#more-info .maps {
    flex-grow: 2;
    background-color: var(--dark-orange);
    border-radius: 50px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#more-info .maps h2 {
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--white);
    text-align: center;
    text-transform: uppercase;
}

#more-info .maps iframe {
    width: 100%;
    height: 450px;
    border-radius: 25px;
    border: none;
}



/* ACTUALITES */

#money {
    background-color: var(--blue);
    color: var(--white);
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

/* Barra di caricamento */
#money .loading-bar {
    position: relative;
    width: 80%;
    max-width: 600px;
    height: 25px;
    background-color: var(--white-sand);
    border-radius: 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

#money .loading-bar span {
    position: absolute;
    left: 0;
    height: 100%;
    background-color: var(--orange-); /* Colore di riempimento */
    width: 50%; /* Valore iniziale (50% del budget raggiunto, personalizzabile con JS) */
    transition: width 1s ease-in-out;
    border-radius: 50px;
}

/* Testo sopra la barra */
#money .loading-bar p {
    position: relative;
    z-index: 2;
    font-weight: bold;
    color: var(--dark-blue);
}

/* Sezione budget */
#money {
    background-color: var(--blue);
    color: var(--white);
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

/* Barra di caricamento */
.loading-bar {
    position: relative;
    width: 80%;
    max-width: 600px;
    height: 25px;
    background-color: var(--white-sand);
    border-radius: 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

/* Barra di sfondo (bianca) */
.loading-bar .progress-background {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white-sand);
    border-radius: 50px;
}

/* Barra di progresso (blu) */
.loading-bar #progress-bar {
    position: absolute;
    left: 0;
    height: 100%;
    background-color: var(--blue);
    transition: width 1s ease-in-out;
    border-radius: 50px;
}

/* Testo sopra la barra */
.loading-bar p {
    position: relative;
    z-index: 2;
    font-weight: bold;
    color: var(--dark-blue);
}

.budjet h2 {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.budjet p {
    font-size: 1.2rem;
    font-weight: bold;
}


/* MENTION LEGALE */

#mention-legale {
    background-color: var(--white-sand);
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#mention-legale .container {
    background-color: var(--orange);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80%;
    padding: 20px;
    border-radius: 10px;
}

#mention-legale h1 {
        color: var(--white);
    padding: 15px;
    border-radius: 5px;
    width: 100%;
    text-align: center;
}

#mention-legale .text {
    background-color: var(--dark-blue);
    color: var(--white-sand);
}

#mention-legale .text:nth-of-type(odd) {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 10px;
}

#mention-legale .text:nth-of-type(odd) h2{
color: var(--white)
}

#mention-legale .text:nth-of-type(even) {
    background-color: var(--dark-orange);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Liens */
#mention-legale a {
    color: var(--white);
    text-decoration: underline;
}